{"ip_address":"188.70.50.103","uri":"\/admin\/reports\/search","method":"POST","controller_action":"App\\Http\\Controllers\\Admin\\ReportsCrudController@search","middleware":["web","admin",{}],"headers":{"host":"kawaz.dot-zerone.com","connection":"keep-alive","content-length":"898","sec-ch-ua":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"","x-csrf-token":"rWFJJC7PrVu6fLRn25hqMyCKQ22YjcnMaBcYT0NH","sec-ch-ua-mobile":"?0","user-agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/96.0.4664.45 Safari\/537.36","content-type":"application\/x-www-form-urlencoded; charset=UTF-8","accept":"application\/json, text\/javascript, *\/*; q=0.01","x-requested-with":"XMLHttpRequest","sec-ch-ua-platform":"\"Windows\"","origin":"https:\/\/kawaz.dot-zerone.com","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https:\/\/kawaz.dot-zerone.com\/admin\/reports","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","cookie":"_ga=GA1.2.1989069031.1630245344; _gid=GA1.2.78818296.1637708619; XSRF-TOKEN=eyJpdiI6Ii9vQ0F5SWY0SUhGbVpaTEtpTjlaRUE9PSIsInZhbHVlIjoiWE9zdlA2Q20wR2kyMGVDZzN4RDJpWmlnTkZFTmFRRWxVbnZaZVJ1Ym9jbFBib3NVcE9udzBkeCtoSVBodEpOQ0dhRVlIUWNxRFcxSlNCWnNNZDNhdzBLUDNQdzcyVmJIYU5DZ3c3L0dhbkF6cFBadjZNclRPNzE4SjVZOGhySzUiLCJtYWMiOiI2ZThlYjQ5NDJjMTA3NTQ2ZmY0N2RmZDMwYmRmZDhkNTE2OTUyMGY4Yjc0ZDgzYTQ3NzE2N2ZhNWQ0NmQ5ZTNjIn0%3D; laravel_session=eyJpdiI6IkthMjVrL1RGUmZGc004VEtEOWhDeFE9PSIsInZhbHVlIjoiaXhXMkJrNHNvdDRUcEdKTFVGZDRoSWpNN2JHMDh0TEQ5VkVLUXBVZGVaZ3pBSWZiRzFWNHc0V0Q0M1d3NDAxNWx3NXQzL0FIYlNTclJIRi9ISkt6Wldwc0djTjJnYlZHQTBPR0tQYk1Wc2NtdndUNDdEQ0VXbGE0bGNONlNJRnYiLCJtYWMiOiJlN2E0ODYyMTRiNzY1MzljZWZmYzZmNTg4ODc0M2I4NWNkMTExOGViY2Y0Y2E4ODFiNDM5NTFmOWQyMDJlMmIxIn0%3D; x-clockwork=%7B%22requestId%22%3A%221637709396-3408-1441474711%22%2C%22version%22%3A%225.0.8%22%2C%22path%22%3A%22%5C%2F__clockwork%5C%2F%22%2C%22token%22%3A%22ce9fa874%22%2C%22metrics%22%3Atrue%2C%22toolbar%22%3Atrue%7D"},"payload":{"draw":"3","columns":[{"data":"0","name":null,"searchable":"true","orderable":"false","search":{"value":null,"regex":"false"}},{"data":"1","name":null,"searchable":"true","orderable":"false","search":{"value":null,"regex":"false"}},{"data":"2","name":null,"searchable":"true","orderable":"true","search":{"value":null,"regex":"false"}},{"data":"3","name":null,"searchable":"true","orderable":"false","search":{"value":null,"regex":"false"}}],"start":"0","length":"10","search":{"value":null,"regex":"false"}},"session":{"_token":"rWFJJC7PrVu6fLRn25hqMyCKQ22YjcnMaBcYT0NH","_previous":{"url":"https:\/\/kawaz.dot-zerone.com\/reports"},"_flash":{"old":[],"new":[]},"url":[],"login_backpack_59ba36addc2b2f9401580f014c7f58ea4e30989d":1,"create":{"saveAction":"save_and_back"}},"response_status":200,"response":{"draw":3,"recordsTotal":1,"recordsFiltered":1,"data":[["<span>\n                        \n            <\/span>\n","<span>\n    <input type=\"checkbox\"\n    \t\tclass=\"crud_bulk_actions_row_checkbox\"\n    \t\tdata-primary-key-value=\"3\"\n    \t\tstyle=\"width: 16px; height: 16px; vertical-align: middle; margin-bottom: 2px;\"\n    \t\t>\n<\/span>\n\n<script>\n\tif (typeof addOrRemoveCrudCheckedItem != 'function') {\n\t  function addOrRemoveCrudCheckedItem(element) {\n\t  \tcrud.lastCheckedItem = false;\n\n\t  \t$(\"input.crud_bulk_actions_row_checkbox\").click(function (e) {\n\t  \t\te.stopPropagation();\n\n\t\t\tvar checked = this.checked;\n\t\t\tvar primaryKeyValue = $(this).attr('data-primary-key-value');\n\t\t\t\/\/ console.log(this.checked);\n\t\t\t\/\/ console.log(primaryKeyValue);\n\n\t\t\tif (typeof crud.checkedItems === 'undefined') {\n\t\t\t\tcrud.checkedItems = [];\n\t\t\t}\n\n\t\t\tif (checked) {\n\t\t\t\t\/\/ add item to crud.checkedItems variable\n\t\t\t\tcrud.checkedItems.push(primaryKeyValue);\n\n\t\t\t\t\/\/ if shift has been pressed, also select all elements\n\t\t\t\t\/\/ between the last checked item and this one\n\t\t\t\tif (crud.lastCheckedItem && e.shiftKey) {\n\t\t\t\t\tvar start_and_end = $(\"#crudTable .crud_bulk_actions_row_checkbox[data-primary-key-value=\"+crud.lastCheckedItem+\"], #crudTable .crud_bulk_actions_row_checkbox[data-primary-key-value=\"+primaryKeyValue+\"]\");\n\n\t\t\t\t\tvar start = start_and_end.first();\n\t\t\t\t\tvar end = start_and_end.last();\n\n\t\t\t\t\tstart.parentsUntil('tr').parent().nextUntil('tr:has([data-primary-key-value=\"'+end.attr('data-primary-key-value')+'\"])', ).each(function(i, element) {\n\t\t\t\t\t\t$(element).find('input.crud_bulk_actions_row_checkbox:not(:checked)').trigger('click');\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t\/\/ remember that this one was the last checked item\n\t\t\t\tcrud.lastCheckedItem = primaryKeyValue;\n\t\t\t} else {\n\t\t\t\t\/\/ remove item from crud.checkedItems variable\n\t\t\t\tvar index = crud.checkedItems.indexOf(primaryKeyValue);\n\t\t\t\tif (index > -1) {\n\t\t\t\t  crud.checkedItems.splice(index, 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\/\/ if no items are selected, disable all bulk buttons\n\t\t\tenableOrDisableBulkButtons();\n\t  \t});\n\t  }\n\t}\n\n\tif (typeof markCheckboxAsCheckedIfPreviouslySelected != 'function') {\n\t  function markCheckboxAsCheckedIfPreviouslySelected() {\n\t  \t$('#crudTable input[type=checkbox][data-primary-key-value]').each(function(i, element) {\n\t\t\tvar checked = element.checked;\n\t\t\tvar primaryKeyValue = $(element).attr('data-primary-key-value');\n\n\t  \t\tif (typeof crud.checkedItems !== 'undefined' && crud.checkedItems.length > 0)\n\t  \t\t{\n\t  \t\t\tvar index = crud.checkedItems.indexOf(primaryKeyValue);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\telement.checked = true;\n\t\t\t\t}\n\t\t\t}\n\t  \t});\n\t  }\n\t}\n\n\tif (typeof addBulkActionMainCheckboxesFunctionality != 'function') {\n      function addBulkActionMainCheckboxesFunctionality() {\n      \t$(\".crud_bulk_actions_main_checkbox\").prop('checked', false);\n\n        \/\/ when the crud_bulk_actions_main_checkbox is selected, toggle all visible checkboxes\n        $(\"input.crud_bulk_actions_main_checkbox\").click(function(event) {\n          if (this.checked) { \/\/ if checked, check all visible checkboxes\n              $(\"input.crud_bulk_actions_row_checkbox:not(:checked)\").trigger('click');\n              \/\/ make sure the other checkbox has the same checked status\n              $(\"input.crud_bulk_actions_main_checkbox\").prop('checked', true);\n          } else { \/\/ if not checked, uncheck all visible checkboxes\n              $(\"input.crud_bulk_actions_row_checkbox:checked\").trigger('click');\n              \/\/ make sure the other checkbox has the same checked status\n              $(\"input.crud_bulk_actions_main_checkbox\").prop('checked', false);\n          }\n        });\n      }\n    }\n\n    if (typeof enableOrDisableBulkButtons != 'function') {\n      function enableOrDisableBulkButtons() {\n\t\tif (typeof crud.checkedItems === 'undefined' || crud.checkedItems.length == 0) {\n\t\t\t$(\".bulk-button\").addClass('disabled');\n\t\t} else {\n\t\t\t$(\".bulk-button\").removeClass('disabled');\n\t\t}\n      }\n    }\n\n\t\/\/ activate checkbox if the page reloaded and the item is remembered as selected\n\t\/\/ make it so that the function above is run after each DataTable draw event\n\tcrud.addFunctionToDataTablesDrawEventQueue('addOrRemoveCrudCheckedItem');\n\tcrud.addFunctionToDataTablesDrawEventQueue('markCheckboxAsCheckedIfPreviouslySelected');\n\tcrud.addFunctionToDataTablesDrawEventQueue('addBulkActionMainCheckboxesFunctionality');\n\tcrud.addFunctionToDataTablesDrawEventQueue('enableOrDisableBulkButtons');\n<\/script>","<span>\n                        \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0627\u0644\u0627\u0642\u062a\u0635\u0627\u062f\u064a \u0641\u0628\u0631\u0627\u064a\u0631 2020\t\n            <\/span>\n","<!-- Single edit button -->\n\t<a href=\"https:\/\/kawaz.dot-zerone.com\/admin\/reports\/3\/edit\" class=\"btn btn-sm btn-link\"><i class=\"la la-edit\"><\/i> Edit<\/a>\n\n\t\n\t\t  \n\t\t  <a href=\"javascript:void(0)\" onclick=\"deleteEntry(this)\" data-route=\"https:\/\/kawaz.dot-zerone.com\/admin\/reports\/3\" class=\"btn btn-sm btn-link\" data-button-type=\"delete\"><i class=\"la la-trash\"><\/i> Delete<\/a>\n\n\n\n\n <script>\n\n\tif (typeof deleteEntry != 'function') {\n\t  $(\"[data-button-type=delete]\").unbind('click');\n\n\t  function deleteEntry(button) {\n\t\t\/\/ ask for confirmation before deleting an item\n\t\t\/\/ e.preventDefault();\n\t\tvar route = $(button).attr('data-route');\n\n\t\tswal({\n\t\t  title: \"Warning\",\n\t\t  text: \"Are you sure you want to delete this item?\",\n\t\t  icon: \"warning\",\n\t\t  buttons: [\"Cancel\", \"Delete\"],\n\t\t  dangerMode: true,\n\t\t}).then((value) => {\n\t\t\tif (value) {\n\t\t\t\t$.ajax({\n\t\t\t      url: route,\n\t\t\t      type: 'DELETE',\n\t\t\t      success: function(result) {\n\t\t\t          if (result == 1) {\n\t\t\t\t\t\t  \/\/ Redraw the table\n\t\t\t\t\t\t  if (typeof crud != 'undefined' && typeof crud.table != 'undefined') {\n\t\t\t\t\t\t\t  \/\/ Move to previous page in case of deleting the only item in table\n\t\t\t\t\t\t\t  if(crud.table.rows().count() === 1) {\n\t\t\t\t\t\t\t    crud.table.page(\"previous\");\n\t\t\t\t\t\t\t  }\n\n\t\t\t\t\t\t\t  crud.table.draw(false);\n\t\t\t\t\t\t  }\n\n\t\t\t          \t  \/\/ Show a success notification bubble\n\t\t\t              new Noty({\n\t\t                    type: \"success\",\n\t\t                    text: \"<strong>Item Deleted<\/strong><br>The item has been deleted successfully.\"\n\t\t                  }).show();\n\n\t\t\t              \/\/ Hide the modal, if any\n\t\t\t              $('.modal').modal('hide');\n\t\t\t          } else {\n\t\t\t              \/\/ if the result is an array, it means \n\t\t\t              \/\/ we have notification bubbles to show\n\t\t\t          \t  if (result instanceof Object) {\n\t\t\t          \t  \t\/\/ trigger one or more bubble notifications \n\t\t\t          \t  \tObject.entries(result).forEach(function(entry, index) {\n\t\t\t          \t  \t  var type = entry[0];\n\t\t\t          \t  \t  entry[1].forEach(function(message, i) {\n\t\t\t\t\t          \t  new Noty({\n\t\t\t\t                    type: type,\n\t\t\t\t                    text: message\n\t\t\t\t                  }).show();\n\t\t\t          \t  \t  });\n\t\t\t          \t  \t});\n\t\t\t          \t  } else {\/\/ Show an error alert\n\t\t\t\t              swal({\n\t\t\t\t              \ttitle: \"Not Deleted\",\n\t                            text: \"Deleting entries is disabled in the online demo. Dooh.\",\n\t\t\t\t              \ticon: \"error\",\n\t\t\t\t              \ttimer: 4000,\n\t\t\t\t              \tbuttons: false,\n\t\t\t\t              });\n\t\t\t          \t  }\t\t\t          \t  \n\t\t\t          }\n\t\t\t      },\n\t\t\t      error: function(result) {\n\t\t\t          \/\/ Show an alert with the result\n\t\t\t          swal({\n\t\t              \ttitle: \"Not Deleted\",\n                        text: \"Deleting entries is disabled in the online demo. Dooh.\",\n\t\t              \ticon: \"error\",\n\t\t              \ttimer: 4000,\n\t\t              \tbuttons: false,\n\t\t              });\n\t\t\t      }\n\t\t\t  });\n\t\t\t}\n\t\t});\n\n      }\n\t}\n\n\t\/\/ make it so that the function above is run after each DataTable draw event\n\t\/\/ crud.addFunctionToDataTablesDrawEventQueue('deleteEntry');\n<\/script>\n\n\t"]]},"duration":63,"memory":2,"hostname":"ubuntu-s-1vcpu-1gb-sfo3-01"}