Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Http\Controllers; use App\Car; use Illuminate\Http\Request; use Illu..

Decoded Output download

<?php 
 namespace App\Http\Controllers; use App\Car; use Illuminate\Http\Request; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Validator; class CarsController extends Controller { public function index() { $cars = Car::latest()->paginate(50); return view("Car.show", compact("cars")); } public function create() { return view("Car.insert"); } public function store(Request $request) { $this->validate(request(), array("nameDriver" => array("nullable", "string", "min:2", "max:255", "alpha_spaces"), "familyDriver" => array("nullable", "string", "min:2", "max:255", "alpha_spaces"), "phoneDriver" => array("nullable", "numeric", "digits:11"), "numChassis" => array("required", "string", "unique:cars"), "dateInGroup" => array("nullable", "string", "max:10"), "dateOrigin" => array("nullable", "string", "max:10"), "dateExit" => array("nullable", "string", "max:10"), "state" => array("required", "numeric"), "originExit" => array("nullable", "numeric"), "destinationExit" => array("nullable", "numeric"), "loadingOrigin" => array("nullable", "numeric"), "nameCompany" => array("nullable", "string", "max:200"), "brand" => array("nullable", "string", "max:200"), "model" => array("nullable", "digits:4"), "color" => array("nullable", "string", "max:30"), "showroom" => array("nullable", "string", "max:200"), "nameShip" => array("nullable", "string", "max:200"), "description" => array("nullable", "string", "max:1000"))); $car = Car::create(array("nameDriver" => $request["nameDriver"], "familyDriver" => $request["familyDriver"], "phoneDriver" => $request["phoneDriver"], "numChassis" => $request["numChassis"], "dateInGroup" => $request["dateInGroup"], "dateOrigin" => $request["dateOrigin"], "dateExit" => $request["dateExit"], "state" => (int) $request["state"], "originExit" => (int) $request["originExit"], "destinationExit" => (int) $request["destinationExit"], "loadingOrigin" => (int) $request["loadingOrigin"], "nameCompany" => $request["nameCompany"], "brand" => $request["brand"], "color" => $request["color"], "model" => $request["model"], "showroom" => $request["showroom"], "nameShip" => $request["nameShip"], "description" => $request["description"], "user_id" => auth()->user()->_id)); if ($car) { Session::flash("success", "     "); } else { Session::flash("error", "   .    ."); } return redirect()->route("car.index"); } public function show(Car $car) { return view("Car.profile")->with("car", $car); } public function edit(Car $car) { return view("Car.update")->with("car", $car); } public function update(Request $request, Car $car) { $this->validate(request(), array("nameDriver" => array("nullable", "string", "min:2", "max:255", "alpha_spaces"), "familyDriver" => array("nullable", "string", "min:2", "max:255", "alpha_spaces"), "phoneDriver" => array("nullable", "numeric", "digits:11", "unique:cars"), "dateInGroup" => array("nullable", "string", "max:10"), "dateOrigin" => array("nullable", "string", "max:10"), "dateExit" => array("nullable", "string", "max:10"), "state" => array("required", "numeric"), "originExit" => array("nullable", "numeric"), "destinationExit" => array("nullable", "numeric"), "loadingOrigin" => array("nullable", "numeric"), "nameCompany" => array("nullable", "string", "max:200"), "brand" => array("nullable", "string", "max:200"), "model" => array("nullable", "digits:4"), "color" => array("nullable", "string", "max:30"), "showroom" => array("nullable", "string", "max:200"), "nameShip" => array("nullable", "string", "max:200"), "description" => array("nullable", "string", "max:1000"))); $car->nameDriver = $request["nameDriver"]; $car->familyDriver = $request["familyDriver"]; $car->phoneDriver = $request["phoneDriver"]; $car->dateInGroup = $request["dateInGroup"]; $car->dateOrigin = $request["dateOrigin"]; $car->dateExit = $request["dateExit"]; $car->state = (int) $request["state"]; $car->originExit = (int) $request["originExit"]; $car->destinationExit = (int) $request["destinationExit"]; $car->loadingOrigin = (int) $request["loadingOrigin"]; $car->nameCompany = $request["nameCompany"]; $car->brand = $request["brand"]; $car->color = $request["color"]; $car->model = $request["model"]; $car->showroom = $request["showroom"]; $car->nameShip = $request["nameShip"]; $car->description = $request["description"]; $car->save(); Session::flash("success", "     "); return redirect()->route("car.index"); } public function destroy(Car $car) { } public function search(Request $request) { $ty = (int) $request["typeSearch"]; $dt1 = verta(); $dt1->timezone = "Asia/Tehran"; $dt1->year(1403); $dt1->month(1); $dt1->day(1); $fromDt = new Carbon($dt1->datetime()); $toDate = new Carbon(); if ($request["FromDate"]) { $arrT = explode("/", $request["FromDate"]); if (count($arrT) == 3) { $v = verta(); $v->timezone = "Asia/Tehran"; $v->year((int) $this->fa2en($arrT[0])); $v->month((int) $this->fa2en($arrT[1])); $v->day((int) $this->fa2en($arrT[2])); $fromDt = new Carbon($v->datetime()); } } if ($request["EndDate"]) { $arrT = explode("/", $request["EndDate"]); if (count($arrT) == 3) { $v = verta(); $v->timezone = "Asia/Tehran"; $v->year((int) $this->fa2en($arrT[0])); $v->month((int) $this->fa2en($arrT[1])); $v->day((int) $this->fa2en($arrT[2])); $toDate = new Carbon($v->datetime()); } } if ($request["searchtxt"] || $ty == 9 || $ty == 10 || $ty == 12 || $ty == 13 || $ty == 14 || $ty == 15) { $txt = $request["searchtxt"]; switch ($ty) { case 1: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("numChassis", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 2: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("nameCompany", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 3: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string", "max:255", "alpha_spaces"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("nameDriver", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 4: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string", "max:255", "alpha_spaces"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("familyDriver", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 5: $val = Validator::make($request->all(), array("searchtxt" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("phoneDriver", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 6: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("brand", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 7: $val = Validator::make($request->all(), array("searchtxt" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("model", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 8: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("showroom", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 9: if (!$request["dateOrigin"]) { return redirect()->route("car.index"); } $txt = $request["dateOrigin"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("dateOrigin", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 10: $val = Validator::make($request->all(), array("loadingOrigin" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $chk = (int) $request["loadingOrigin"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("loadingOrigin", $chk)->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 11: $val = Validator::make($request->all(), array("searchtxt" => array("required", "string"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("nameShip", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 12: $val = Validator::make($request->all(), array("originExit" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $chk = (int) $request["originExit"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("originExit", $chk)->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 13: $val = Validator::make($request->all(), array("destinationExit" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $chk = (int) $request["destinationExit"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("destinationExit", $chk)->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 14: if (!$request["dateExit"]) { return redirect()->route("car.index"); } $txt = $request["dateExit"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("dateExit", "like", "%{$txt}%")->latest()->paginate(50); return view("Car.show", compact("cars")); break; case 15: $val = Validator::make($request->all(), array("state" => array("required", "numeric"))); if ($val->fails()) { Session::flash("error", "    "); return redirect()->route("car.index"); } $chk = (int) $request["state"]; $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where("state", $chk)->latest()->paginate(50); return view("Car.show", compact("cars")); break; default: $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->where(function ($q) use($txt) { $q->where("numChassis", "like", "%{$txt}%")->orWhere("nameCompany", "like", "%{$txt}%")->orWhere("nameDriver", "like", "%{$txt}%")->orWhere("familyDriver", "like", "%{$txt}%")->orWhere("phoneDriver", "like", "%{$txt}%")->orWhere("brand", "like", "%{$txt}%")->orWhere("model", "like", "%{$txt}%")->orWhere("showroom", "like", "%{$txt}%")->orWhere("dateOrigin", "like", "%{$txt}%")->orWhere("nameShip", "like", "%{$txt}%")->orWhere("dateExit", "like", "%{$txt}%"); })->latest()->paginate(50); return view("Car.show", compact("cars")); break; } } else { if ($request["FromDate"] || $request["EndDate"]) { $cars = Car::whereBetween("created_at", array($fromDt, $toDate))->latest()->paginate(50); return view("Car.show", compact("cars")); } } return redirect()->route("car.index"); } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Http\Controllers; use App\Car; use Illuminate\Http\Request; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Validator; class CarsController extends Controller { public function index() { $cars = Car::latest()->paginate(50); return view("\103\x61\x72\x2e\163\150\157\x77", compact("\143\141\162\163")); } public function create() { return view("\x43\141\x72\56\x69\x6e\x73\x65\162\164"); } public function store(Request $request) { $this->validate(request(), array("\156\x61\155\x65\x44\x72\x69\x76\x65\162" => array("\156\165\x6c\x6c\141\142\154\x65", "\x73\x74\x72\151\x6e\x67", "\x6d\151\156\72\x32", "\155\x61\x78\72\x32\x35\65", "\x61\x6c\x70\x68\x61\x5f\x73\x70\x61\x63\x65\x73"), "\x66\141\155\151\154\x79\104\162\x69\x76\x65\x72" => array("\156\x75\154\154\x61\x62\x6c\145", "\x73\164\x72\x69\156\147", "\x6d\151\156\x3a\62", "\155\x61\x78\72\x32\x35\x35", "\141\154\x70\150\x61\x5f\x73\160\141\x63\145\x73"), "\160\150\157\x6e\145\104\162\151\166\145\162" => array("\x6e\165\x6c\x6c\x61\x62\x6c\145", "\156\x75\x6d\x65\x72\151\143", "\x64\151\147\151\x74\163\x3a\x31\61"), "\156\x75\155\103\x68\141\x73\163\x69\163" => array("\x72\x65\161\x75\x69\x72\x65\144", "\163\x74\x72\151\x6e\147", "\x75\156\151\161\x75\x65\x3a\x63\x61\162\x73"), "\144\141\164\145\111\x6e\107\162\x6f\165\x70" => array("\156\x75\154\x6c\141\142\154\145", "\163\164\162\151\x6e\147", "\155\141\170\x3a\61\60"), "\x64\141\x74\145\x4f\162\151\x67\x69\x6e" => array("\x6e\165\154\x6c\141\142\x6c\145", "\163\164\162\151\x6e\147", "\155\x61\170\72\x31\60"), "\x64\141\x74\x65\105\x78\151\x74" => array("\156\165\x6c\x6c\141\142\154\145", "\x73\x74\x72\x69\156\147", "\155\x61\x78\72\x31\60"), "\x73\x74\141\164\145" => array("\x72\145\x71\x75\151\162\145\144", "\x6e\x75\x6d\145\x72\x69\143"), "\x6f\162\151\x67\x69\x6e\105\170\151\x74" => array("\156\x75\154\154\141\x62\x6c\145", "\156\x75\x6d\x65\x72\151\x63"), "\x64\x65\163\x74\x69\156\141\x74\x69\x6f\x6e\x45\x78\x69\x74" => array("\x6e\x75\154\154\x61\142\154\x65", "\x6e\165\x6d\145\162\x69\x63"), "\154\x6f\141\144\x69\156\x67\x4f\162\151\x67\151\x6e" => array("\x6e\x75\x6c\x6c\141\x62\x6c\145", "\x6e\165\x6d\145\162\x69\x63"), "\156\141\155\x65\x43\157\155\x70\141\156\171" => array("\156\165\x6c\154\x61\x62\154\145", "\163\x74\x72\151\x6e\x67", "\155\x61\170\72\x32\x30\x30"), "\x62\162\x61\x6e\144" => array("\156\165\x6c\154\x61\x62\154\145", "\163\x74\162\x69\x6e\x67", "\x6d\x61\170\x3a\x32\x30\60"), "\155\157\x64\x65\154" => array("\156\x75\154\x6c\141\142\154\145", "\144\x69\147\x69\164\x73\x3a\x34"), "\143\x6f\154\x6f\x72" => array("\x6e\165\x6c\154\x61\142\x6c\145", "\163\x74\162\151\x6e\x67", "\155\x61\170\x3a\63\60"), "\x73\x68\x6f\x77\162\157\x6f\155" => array("\x6e\x75\154\x6c\x61\142\154\145", "\163\164\162\x69\156\x67", "\x6d\141\x78\x3a\62\60\60"), "\x6e\x61\155\x65\123\x68\151\x70" => array("\x6e\x75\x6c\x6c\141\x62\x6c\x65", "\163\x74\162\x69\156\x67", "\x6d\x61\170\72\62\x30\60"), "\x64\145\x73\x63\x72\x69\x70\x74\151\157\156" => array("\156\x75\x6c\x6c\141\x62\x6c\x65", "\163\x74\162\151\156\147", "\x6d\141\170\72\x31\x30\60\x30"))); $car = Car::create(array("\x6e\x61\x6d\x65\104\162\151\x76\x65\x72" => $request["\156\141\155\x65\104\x72\151\x76\145\162"], "\146\x61\x6d\x69\154\171\x44\x72\x69\x76\x65\162" => $request["\146\141\155\x69\x6c\x79\104\162\151\x76\145\162"], "\x70\x68\157\x6e\x65\x44\x72\x69\166\145\x72" => $request["\x70\150\x6f\156\x65\104\162\151\166\145\162"], "\156\165\x6d\x43\x68\x61\x73\x73\151\163" => $request["\156\x75\x6d\x43\150\x61\x73\163\x69\x73"], "\144\x61\164\145\x49\x6e\x47\162\157\165\160" => $request["\x64\141\164\145\111\156\x47\x72\157\165\160"], "\144\141\x74\x65\x4f\x72\x69\x67\x69\156" => $request["\x64\141\164\x65\117\x72\151\x67\x69\156"], "\144\x61\x74\145\105\x78\151\x74" => $request["\x64\141\164\145\x45\170\151\x74"], "\x73\164\141\x74\x65" => (int) $request["\x73\164\141\164\145"], "\x6f\x72\x69\147\151\x6e\105\x78\151\164" => (int) $request["\x6f\162\151\x67\151\x6e\x45\170\151\x74"], "\x64\x65\163\164\151\156\141\164\151\157\x6e\x45\x78\151\x74" => (int) $request["\144\145\163\164\151\x6e\141\164\x69\x6f\156\105\170\151\164"], "\154\x6f\x61\144\151\x6e\147\117\x72\151\x67\x69\x6e" => (int) $request["\154\157\x61\x64\x69\x6e\x67\117\162\151\147\151\x6e"], "\x6e\141\155\145\x43\157\155\160\141\x6e\171" => $request["\x6e\x61\x6d\x65\x43\157\155\160\x61\x6e\x79"], "\142\x72\141\156\144" => $request["\142\162\x61\x6e\x64"], "\143\x6f\154\x6f\x72" => $request["\143\157\x6c\x6f\162"], "\155\x6f\x64\x65\154" => $request["\x6d\x6f\144\x65\154"], "\163\150\157\x77\x72\157\x6f\x6d" => $request["\x73\x68\157\x77\162\157\x6f\x6d"], "\156\x61\x6d\145\123\150\x69\x70" => $request["\x6e\141\155\x65\123\150\x69\x70"], "\144\145\x73\x63\162\x69\160\164\x69\x6f\156" => $request["\144\145\x73\x63\162\x69\160\164\x69\x6f\156"], "\165\163\x65\x72\x5f\x69\x64" => auth()->user()->_id)); if ($car) { Session::flash("\x73\x75\x63\x63\145\x73\163", "\331\x85\xd8\247\xd8\xb4\333\214\xd9\206\40\xd8\xb3\331\x88\xd8\247\330\261\333\x8c\40\330\250\xd8\247\40\xd9\205\xd9\210\331\x81\331\x82\333\214\xd8\xaa\x20\330\247\330\266\xd8\247\331\x81\331\207\40\330\xb4\330\xaf"); } else { Session::flash("\145\x72\x72\x6f\162", "\331\x85\330\xa7\xd8\264\333\214\331\x86\x20\330\xb3\331\x88\xd8\247\xd8\261\333\214\40\xd8\247\xd8\xb6\330\247\331\201\331\207\40\xd9\x86\xd8\264\330\257\56\40\xd9\204\330\267\xd9\201\330\xa7\xd9\x8b\40\xd8\xaf\xd9\x88\330\xa8\xd8\247\330\261\331\x87\40\330\xaa\xd9\204\330\247\xd8\xb4\x20\xda\xa9\xd9\206\333\214\330\xaf\x2e"); } return redirect()->route("\x63\x61\x72\x2e\x69\156\x64\145\170"); } public function show(Car $car) { return view("\x43\141\162\56\x70\162\x6f\x66\x69\154\x65")->with("\x63\141\162", $car); } public function edit(Car $car) { return view("\103\x61\x72\56\x75\x70\144\141\164\x65")->with("\143\141\x72", $car); } public function update(Request $request, Car $car) { $this->validate(request(), array("\156\x61\x6d\145\104\162\151\x76\145\162" => array("\x6e\x75\x6c\x6c\x61\x62\154\145", "\163\x74\x72\151\156\147", "\155\151\156\x3a\x32", "\x6d\x61\x78\x3a\62\x35\x35", "\141\x6c\160\150\141\137\163\x70\x61\x63\x65\163"), "\x66\141\x6d\151\154\171\104\x72\x69\166\x65\x72" => array("\x6e\x75\x6c\x6c\141\x62\154\145", "\163\x74\x72\x69\156\147", "\155\151\156\x3a\x32", "\155\141\170\x3a\62\x35\x35", "\141\154\160\x68\x61\x5f\x73\x70\141\143\145\x73"), "\x70\x68\x6f\156\145\104\162\x69\166\x65\x72" => array("\x6e\x75\154\x6c\x61\x62\x6c\145", "\156\x75\x6d\145\162\x69\x63", "\144\x69\147\151\x74\x73\x3a\x31\61", "\x75\156\x69\x71\165\145\x3a\143\141\162\163"), "\x64\x61\x74\x65\111\156\x47\x72\x6f\x75\160" => array("\x6e\x75\x6c\154\141\x62\x6c\x65", "\x73\164\162\x69\x6e\x67", "\x6d\x61\x78\72\61\x30"), "\144\141\x74\x65\117\x72\151\x67\x69\x6e" => array("\156\x75\x6c\154\141\142\x6c\145", "\163\164\162\151\156\x67", "\155\x61\x78\x3a\61\60"), "\x64\x61\x74\x65\105\x78\x69\164" => array("\156\165\x6c\154\141\x62\154\145", "\x73\164\162\151\x6e\147", "\x6d\x61\x78\x3a\61\x30"), "\163\164\141\x74\145" => array("\162\145\161\x75\x69\x72\x65\144", "\x6e\165\x6d\145\162\151\143"), "\157\x72\151\147\151\x6e\105\x78\151\x74" => array("\x6e\165\x6c\x6c\x61\142\x6c\145", "\x6e\165\155\145\x72\151\143"), "\144\x65\x73\164\151\156\141\x74\x69\157\156\x45\x78\x69\x74" => array("\156\x75\x6c\154\141\142\x6c\145", "\156\165\155\145\162\151\143"), "\154\157\x61\x64\x69\156\147\x4f\162\151\x67\x69\x6e" => array("\x6e\x75\x6c\x6c\x61\142\154\145", "\156\165\155\x65\x72\x69\143"), "\x6e\x61\x6d\145\103\x6f\x6d\160\x61\156\x79" => array("\156\165\x6c\x6c\141\142\154\145", "\163\x74\162\151\x6e\147", "\x6d\141\170\72\62\60\x30"), "\x62\162\141\156\144" => array("\x6e\x75\x6c\154\x61\x62\x6c\x65", "\163\164\x72\x69\156\x67", "\155\x61\x78\72\x32\60\x30"), "\x6d\x6f\x64\145\x6c" => array("\156\x75\154\x6c\141\142\154\145", "\144\x69\x67\x69\164\163\72\64"), "\x63\x6f\x6c\x6f\x72" => array("\156\165\x6c\x6c\x61\x62\154\145", "\x73\164\x72\151\156\147", "\155\x61\170\72\63\x30"), "\x73\150\157\x77\162\x6f\157\155" => array("\156\165\x6c\154\141\x62\154\x65", "\163\x74\x72\x69\x6e\x67", "\155\141\170\x3a\62\x30\60"), "\x6e\x61\x6d\145\123\x68\151\160" => array("\x6e\x75\154\x6c\141\142\x6c\x65", "\163\x74\162\x69\x6e\x67", "\x6d\141\170\x3a\62\x30\60"), "\x64\145\x73\x63\x72\x69\x70\164\x69\157\x6e" => array("\x6e\165\x6c\x6c\x61\142\x6c\x65", "\163\164\162\151\156\x67", "\155\141\170\72\x31\x30\60\x30"))); $car->nameDriver = $request["\156\x61\x6d\145\104\162\151\x76\x65\162"]; $car->familyDriver = $request["\146\x61\155\151\154\171\x44\162\151\166\145\162"]; $car->phoneDriver = $request["\x70\150\x6f\x6e\145\104\x72\x69\x76\x65\x72"]; $car->dateInGroup = $request["\x64\141\164\x65\x49\156\107\162\x6f\x75\x70"]; $car->dateOrigin = $request["\144\x61\x74\145\117\x72\151\147\x69\x6e"]; $car->dateExit = $request["\x64\x61\164\x65\x45\x78\151\x74"]; $car->state = (int) $request["\x73\164\141\164\x65"]; $car->originExit = (int) $request["\x6f\x72\151\x67\151\156\x45\x78\151\x74"]; $car->destinationExit = (int) $request["\144\145\163\x74\151\x6e\141\x74\x69\x6f\x6e\105\x78\x69\x74"]; $car->loadingOrigin = (int) $request["\154\x6f\141\x64\151\156\147\x4f\x72\x69\x67\x69\x6e"]; $car->nameCompany = $request["\x6e\141\x6d\x65\x43\x6f\155\160\141\x6e\171"]; $car->brand = $request["\142\x72\141\x6e\x64"]; $car->color = $request["\x63\x6f\x6c\157\162"]; $car->model = $request["\155\x6f\144\x65\154"]; $car->showroom = $request["\x73\x68\157\x77\162\157\157\x6d"]; $car->nameShip = $request["\x6e\141\x6d\x65\x53\x68\151\160"]; $car->description = $request["\144\x65\163\143\x72\x69\x70\164\x69\x6f\156"]; $car->save(); Session::flash("\163\x75\143\143\x65\163\x73", "\xd9\x85\330\xa7\330\xb4\333\214\xd9\x86\40\330\263\xd9\210\xd8\xa7\330\261\xdb\214\40\xd8\250\330\247\x20\331\205\xd9\210\xd9\201\331\x82\333\214\330\xaa\40\xd9\210\xdb\214\xd8\xb1\xd8\247\xdb\x8c\xd8\264\40\xd8\xb4\xd8\xaf"); return redirect()->route("\x63\x61\162\x2e\151\156\144\145\170"); } public function destroy(Car $car) { } public function search(Request $request) { $ty = (int) $request["\x74\171\x70\145\123\145\x61\162\143\150"]; $dt1 = verta(); $dt1->timezone = "\x41\163\x69\141\57\124\x65\150\x72\x61\156"; $dt1->year(1403); $dt1->month(1); $dt1->day(1); $fromDt = new Carbon($dt1->datetime()); $toDate = new Carbon(); if ($request["\x46\x72\157\155\x44\x61\x74\x65"]) { $arrT = explode("\x2f", $request["\x46\x72\157\x6d\104\141\164\145"]); if (count($arrT) == 3) { $v = verta(); $v->timezone = "\101\163\151\x61\x2f\x54\x65\150\x72\141\x6e"; $v->year((int) $this->fa2en($arrT[0])); $v->month((int) $this->fa2en($arrT[1])); $v->day((int) $this->fa2en($arrT[2])); $fromDt = new Carbon($v->datetime()); } } if ($request["\x45\x6e\144\x44\141\x74\145"]) { $arrT = explode("\57", $request["\x45\156\x64\x44\141\x74\145"]); if (count($arrT) == 3) { $v = verta(); $v->timezone = "\x41\x73\151\141\57\x54\145\150\x72\x61\x6e"; $v->year((int) $this->fa2en($arrT[0])); $v->month((int) $this->fa2en($arrT[1])); $v->day((int) $this->fa2en($arrT[2])); $toDate = new Carbon($v->datetime()); } } if ($request["\163\x65\141\162\x63\x68\x74\x78\164"] || $ty == 9 || $ty == 10 || $ty == 12 || $ty == 13 || $ty == 14 || $ty == 15) { $txt = $request["\163\x65\141\x72\x63\150\x74\x78\164"]; switch ($ty) { case 1: $val = Validator::make($request->all(), array("\x73\x65\141\x72\143\150\164\170\164" => array("\x72\145\161\x75\x69\x72\145\144", "\163\x74\162\151\156\x67"))); if ($val->fails()) { Session::flash("\145\162\x72\x6f\x72", "\xd9\x85\xd8\252\331\x86\40\330\261\xd8\247\40\330\265\xd8\255\333\x8c\xd8\255\x20\xd9\x88\xd8\247\xd8\261\xd8\257\40\xd9\x86\xd9\205\330\247\333\214\xdb\x8c\330\xaf"); return redirect()->route("\143\141\x72\x2e\151\156\x64\x65\x78"); } $cars = Car::whereBetween("\x63\x72\145\x61\164\x65\x64\x5f\x61\x74", array($fromDt, $toDate))->where("\x6e\165\155\x43\x68\x61\163\x73\x69\x73", "\x6c\x69\x6b\x65", "\x25{$txt}\x25")->latest()->paginate(50); return view("\x43\141\x72\x2e\x73\150\x6f\167", compact("\x63\x61\x72\x73")); break; case 2: $val = Validator::make($request->all(), array("\163\145\x61\x72\x63\x68\x74\x78\164" => array("\x72\x65\161\165\x69\162\x65\144", "\163\164\x72\151\x6e\147"))); if ($val->fails()) { Session::flash("\145\x72\162\157\x72", "\331\x85\330\252\331\206\40\330\261\330\xa7\40\330\xb5\330\255\xdb\x8c\330\xad\x20\xd9\x88\330\247\330\261\330\257\x20\331\206\xd9\205\xd8\247\xdb\214\xdb\x8c\xd8\xaf"); return redirect()->route("\x63\141\x72\x2e\151\x6e\144\145\x78"); } $cars = Car::whereBetween("\143\162\145\141\x74\145\144\x5f\141\x74", array($fromDt, $toDate))->where("\156\141\155\145\x43\x6f\155\x70\x61\156\x79", "\x6c\x69\153\145", "\45{$txt}\x25")->latest()->paginate(50); return view("\x43\141\162\56\163\150\157\167", compact("\143\x61\x72\x73")); break; case 3: $val = Validator::make($request->all(), array("\163\145\x61\x72\x63\x68\164\x78\164" => array("\162\x65\161\165\151\x72\145\144", "\163\x74\x72\151\x6e\147", "\155\141\170\72\62\65\65", "\141\x6c\160\150\141\137\163\x70\x61\x63\145\x73"))); if ($val->fails()) { Session::flash("\x65\162\162\157\x72", "\xd9\x85\xd8\252\331\x86\40\xd8\261\330\xa7\40\330\xb5\xd8\xad\333\x8c\xd8\255\40\331\x88\330\xa7\xd8\xb1\330\257\40\xd9\206\xd9\x85\330\247\xdb\x8c\xdb\x8c\xd8\257"); return redirect()->route("\143\x61\162\56\151\x6e\144\x65\x78"); } $cars = Car::whereBetween("\143\x72\x65\x61\x74\x65\x64\x5f\x61\164", array($fromDt, $toDate))->where("\x6e\141\155\145\x44\x72\151\x76\145\x72", "\154\x69\153\x65", "\x25{$txt}\45")->latest()->paginate(50); return view("\x43\x61\x72\x2e\x73\150\157\x77", compact("\x63\x61\162\x73")); break; case 4: $val = Validator::make($request->all(), array("\x73\x65\x61\162\x63\150\x74\x78\x74" => array("\x72\145\161\x75\x69\x72\145\x64", "\163\164\162\x69\156\x67", "\155\141\x78\72\62\65\x35", "\141\x6c\160\x68\141\x5f\163\160\x61\x63\145\163"))); if ($val->fails()) { Session::flash("\145\162\x72\x6f\162", "\331\x85\330\252\331\206\x20\xd8\261\xd8\247\40\330\xb5\330\255\333\214\xd8\xad\40\331\x88\330\xa7\xd8\261\xd8\257\x20\331\206\331\x85\xd8\247\333\x8c\xdb\214\xd8\257"); return redirect()->route("\x63\x61\162\56\x69\156\144\145\x78"); } $cars = Car::whereBetween("\x63\x72\x65\141\x74\145\x64\x5f\141\x74", array($fromDt, $toDate))->where("\146\x61\x6d\x69\x6c\x79\104\x72\x69\166\145\x72", "\x6c\x69\x6b\145", "\x25{$txt}\x25")->latest()->paginate(50); return view("\x43\141\162\x2e\163\150\157\x77", compact("\x63\x61\x72\x73")); break; case 5: $val = Validator::make($request->all(), array("\x73\x65\x61\162\143\x68\x74\170\164" => array("\x72\145\x71\165\x69\162\x65\x64", "\156\165\155\145\162\x69\143"))); if ($val->fails()) { Session::flash("\x65\162\162\x6f\162", "\331\205\xd8\xaa\331\206\x20\xd8\xb1\xd8\247\40\330\265\xd8\xad\xdb\x8c\330\255\x20\331\x88\xd8\247\330\261\xd8\xaf\40\xd9\x86\xd9\205\330\xa7\333\214\xdb\x8c\xd8\xaf"); return redirect()->route("\x63\x61\162\x2e\x69\156\144\x65\x78"); } $cars = Car::whereBetween("\x63\162\x65\x61\164\145\144\137\141\164", array($fromDt, $toDate))->where("\x70\150\x6f\x6e\x65\104\162\151\x76\145\x72", "\x6c\151\153\x65", "\x25{$txt}\45")->latest()->paginate(50); return view("\103\x61\162\56\163\150\157\x77", compact("\143\141\x72\x73")); break; case 6: $val = Validator::make($request->all(), array("\x73\x65\141\x72\x63\x68\x74\170\164" => array("\x72\145\161\165\151\162\145\144", "\x73\164\162\151\x6e\147"))); if ($val->fails()) { Session::flash("\145\162\x72\x6f\x72", "\xd9\205\xd8\252\xd9\x86\40\330\261\330\247\x20\330\265\330\255\333\x8c\xd8\255\40\xd9\x88\330\247\xd8\xb1\330\257\40\xd9\206\331\205\xd8\247\xdb\214\333\214\330\257"); return redirect()->route("\x63\x61\x72\56\151\156\x64\x65\x78"); } $cars = Car::whereBetween("\143\162\145\141\164\x65\144\137\x61\164", array($fromDt, $toDate))->where("\x62\162\x61\x6e\144", "\x6c\151\x6b\145", "\x25{$txt}\45")->latest()->paginate(50); return view("\103\141\x72\56\163\x68\157\167", compact("\x63\141\x72\x73")); break; case 7: $val = Validator::make($request->all(), array("\163\x65\x61\162\143\150\x74\170\164" => array("\162\145\161\x75\151\x72\145\144", "\x6e\165\155\x65\162\x69\143"))); if ($val->fails()) { Session::flash("\x65\x72\x72\157\x72", "\xd9\x85\330\252\331\206\x20\330\261\xd8\xa7\x20\330\xb5\xd8\255\333\x8c\xd8\255\40\331\x88\xd8\247\330\261\xd8\xaf\x20\xd9\206\331\205\xd8\247\xdb\214\xdb\x8c\xd8\257"); return redirect()->route("\143\x61\162\56\x69\x6e\144\x65\170"); } $cars = Car::whereBetween("\x63\162\x65\x61\x74\x65\144\x5f\x61\x74", array($fromDt, $toDate))->where("\x6d\157\x64\145\154", "\154\x69\153\145", "\x25{$txt}\x25")->latest()->paginate(50); return view("\x43\141\x72\x2e\x73\x68\157\167", compact("\143\141\x72\163")); break; case 8: $val = Validator::make($request->all(), array("\x73\145\141\x72\x63\150\164\x78\164" => array("\162\145\161\165\x69\x72\145\144", "\x73\x74\162\x69\156\147"))); if ($val->fails()) { Session::flash("\145\162\x72\157\x72", "\xd9\x85\330\xaa\331\x86\40\xd8\261\330\247\40\xd8\265\330\255\xdb\214\xd8\xad\x20\xd9\210\330\xa7\330\261\xd8\257\x20\331\x86\331\205\xd8\xa7\333\214\xdb\214\xd8\257"); return redirect()->route("\x63\141\x72\x2e\151\156\144\145\x78"); } $cars = Car::whereBetween("\143\162\145\x61\164\145\x64\x5f\x61\164", array($fromDt, $toDate))->where("\x73\150\157\167\x72\157\157\155", "\154\x69\x6b\x65", "\45{$txt}\x25")->latest()->paginate(50); return view("\x43\x61\162\x2e\163\x68\x6f\167", compact("\x63\x61\x72\163")); break; case 9: if (!$request["\144\x61\164\145\117\162\x69\x67\x69\x6e"]) { return redirect()->route("\143\x61\162\x2e\x69\x6e\144\145\170"); } $txt = $request["\144\141\x74\145\117\x72\x69\x67\151\x6e"]; $cars = Car::whereBetween("\x63\x72\x65\141\164\x65\144\137\x61\x74", array($fromDt, $toDate))->where("\x64\141\x74\145\117\162\x69\147\151\156", "\x6c\151\x6b\x65", "\45{$txt}\x25")->latest()->paginate(50); return view("\x43\141\162\56\x73\150\x6f\x77", compact("\x63\x61\x72\x73")); break; case 10: $val = Validator::make($request->all(), array("\154\x6f\141\144\151\x6e\x67\117\162\151\x67\x69\156" => array("\162\145\161\165\151\162\x65\x64", "\x6e\x75\155\x65\162\x69\143"))); if ($val->fails()) { Session::flash("\145\162\x72\x6f\162", "\xd9\205\330\252\xd9\206\x20\xd8\xb1\xd8\xa7\x20\330\xb5\330\255\xdb\x8c\xd8\255\40\xd9\210\330\247\xd8\261\xd8\xaf\x20\331\x86\331\x85\330\247\333\214\xdb\214\330\257"); return redirect()->route("\143\141\x72\x2e\151\156\x64\145\x78"); } $chk = (int) $request["\154\157\x61\x64\151\x6e\147\117\162\x69\x67\151\156"]; $cars = Car::whereBetween("\143\x72\145\x61\x74\145\144\x5f\x61\164", array($fromDt, $toDate))->where("\154\x6f\x61\x64\151\x6e\147\117\162\x69\147\151\x6e", $chk)->latest()->paginate(50); return view("\103\x61\162\56\x73\150\157\167", compact("\x63\x61\x72\163")); break; case 11: $val = Validator::make($request->all(), array("\163\x65\141\162\143\150\164\170\x74" => array("\162\145\x71\165\151\x72\145\144", "\x73\164\x72\151\x6e\147"))); if ($val->fails()) { Session::flash("\x65\162\x72\x6f\x72", "\xd9\205\xd8\252\xd9\206\x20\xd8\261\xd8\xa7\x20\xd8\265\xd8\xad\xdb\214\xd8\255\x20\331\210\330\xa7\330\xb1\xd8\257\x20\xd9\206\331\205\330\xa7\333\x8c\xdb\214\xd8\257"); return redirect()->route("\143\x61\162\56\151\x6e\144\145\x78"); } $cars = Car::whereBetween("\143\x72\x65\x61\x74\145\x64\x5f\141\164", array($fromDt, $toDate))->where("\156\x61\155\145\123\x68\x69\160", "\x6c\151\153\145", "\45{$txt}\45")->latest()->paginate(50); return view("\103\141\162\x2e\x73\x68\157\167", compact("\143\x61\x72\x73")); break; case 12: $val = Validator::make($request->all(), array("\x6f\x72\151\147\x69\156\105\170\151\x74" => array("\162\145\x71\165\151\x72\x65\x64", "\x6e\x75\x6d\145\x72\151\143"))); if ($val->fails()) { Session::flash("\x65\162\x72\157\x72", "\331\205\330\xaa\xd9\206\x20\330\xb1\xd8\xa7\40\330\xb5\330\255\333\x8c\xd8\xad\x20\331\210\xd8\247\330\261\xd8\xaf\x20\331\x86\331\x85\xd8\247\333\x8c\333\214\xd8\xaf"); return redirect()->route("\143\141\162\56\x69\x6e\144\x65\170"); } $chk = (int) $request["\x6f\x72\151\x67\x69\x6e\x45\170\151\164"]; $cars = Car::whereBetween("\143\162\x65\141\164\145\144\137\x61\164", array($fromDt, $toDate))->where("\x6f\x72\151\147\151\156\105\x78\151\x74", $chk)->latest()->paginate(50); return view("\x43\141\x72\x2e\163\x68\157\167", compact("\143\141\x72\x73")); break; case 13: $val = Validator::make($request->all(), array("\x64\x65\163\x74\x69\x6e\x61\x74\151\157\x6e\x45\170\151\x74" => array("\x72\145\161\x75\151\162\145\144", "\156\165\x6d\x65\162\x69\x63"))); if ($val->fails()) { Session::flash("\x65\162\162\157\162", "\xd9\205\xd8\252\xd9\x86\40\xd8\261\330\xa7\40\330\265\330\255\333\214\xd8\255\x20\xd9\x88\xd8\xa7\xd8\xb1\330\xaf\40\331\206\xd9\x85\330\xa7\xdb\214\333\x8c\xd8\xaf"); return redirect()->route("\x63\141\162\x2e\x69\156\144\x65\x78"); } $chk = (int) $request["\x64\x65\163\164\151\x6e\141\164\151\157\156\105\x78\x69\164"]; $cars = Car::whereBetween("\143\x72\145\x61\x74\x65\x64\137\141\164", array($fromDt, $toDate))->where("\x64\x65\x73\x74\151\x6e\141\x74\151\157\x6e\105\170\151\164", $chk)->latest()->paginate(50); return view("\103\141\162\56\163\x68\x6f\x77", compact("\x63\141\x72\x73")); break; case 14: if (!$request["\x64\x61\164\145\x45\x78\x69\x74"]) { return redirect()->route("\143\141\x72\x2e\151\156\144\x65\170"); } $txt = $request["\x64\x61\x74\145\105\x78\151\164"]; $cars = Car::whereBetween("\143\162\145\x61\164\x65\x64\x5f\x61\x74", array($fromDt, $toDate))->where("\144\141\164\145\105\x78\x69\164", "\154\151\x6b\x65", "\45{$txt}\x25")->latest()->paginate(50); return view("\103\x61\x72\x2e\163\x68\x6f\x77", compact("\143\141\x72\163")); break; case 15: $val = Validator::make($request->all(), array("\163\x74\x61\164\145" => array("\x72\x65\x71\165\x69\x72\x65\144", "\x6e\165\155\x65\x72\x69\x63"))); if ($val->fails()) { Session::flash("\x65\x72\162\157\162", "\331\x85\xd8\252\331\x86\x20\xd8\xb1\xd8\247\x20\xd8\265\xd8\xad\333\x8c\330\xad\x20\xd9\210\xd8\247\xd8\261\xd8\257\x20\xd9\206\331\x85\330\xa7\333\214\xdb\x8c\xd8\257"); return redirect()->route("\x63\x61\x72\x2e\x69\x6e\144\x65\x78"); } $chk = (int) $request["\x73\x74\141\x74\x65"]; $cars = Car::whereBetween("\x63\x72\x65\141\x74\145\x64\137\141\x74", array($fromDt, $toDate))->where("\163\x74\x61\x74\145", $chk)->latest()->paginate(50); return view("\103\141\162\56\x73\x68\157\x77", compact("\143\141\x72\x73")); break; default: $cars = Car::whereBetween("\143\x72\x65\x61\x74\145\x64\137\141\x74", array($fromDt, $toDate))->where(function ($q) use($txt) { $q->where("\x6e\165\x6d\x43\150\141\x73\x73\151\x73", "\x6c\151\x6b\145", "\x25{$txt}\x25")->orWhere("\x6e\141\x6d\x65\103\157\155\x70\x61\x6e\171", "\x6c\x69\153\x65", "\45{$txt}\45")->orWhere("\x6e\x61\x6d\x65\104\x72\x69\x76\x65\162", "\x6c\x69\x6b\145", "\45{$txt}\x25")->orWhere("\x66\141\155\151\154\x79\104\x72\x69\166\145\x72", "\154\x69\153\x65", "\x25{$txt}\x25")->orWhere("\160\x68\x6f\x6e\x65\x44\x72\x69\166\145\x72", "\x6c\x69\153\x65", "\45{$txt}\x25")->orWhere("\142\162\x61\x6e\144", "\154\x69\153\x65", "\45{$txt}\x25")->orWhere("\x6d\x6f\144\x65\154", "\x6c\x69\x6b\145", "\x25{$txt}\45")->orWhere("\163\x68\x6f\x77\x72\x6f\x6f\155", "\154\x69\153\145", "\45{$txt}\45")->orWhere("\x64\141\x74\x65\117\162\x69\147\x69\x6e", "\154\151\x6b\145", "\x25{$txt}\45")->orWhere("\156\x61\x6d\x65\x53\x68\x69\x70", "\154\151\x6b\145", "\x25{$txt}\45")->orWhere("\x64\x61\x74\x65\x45\x78\151\164", "\154\x69\153\145", "\45{$txt}\45"); })->latest()->paginate(50); return view("\103\x61\162\x2e\163\150\x6f\167", compact("\143\141\x72\x73")); break; } } else { if ($request["\x46\x72\157\x6d\104\x61\164\x65"] || $request["\x45\156\x64\104\x61\164\145"]) { $cars = Car::whereBetween("\x63\x72\x65\141\x74\145\144\x5f\141\x74", array($fromDt, $toDate))->latest()->paginate(50); return view("\x43\141\162\x2e\163\150\157\x77", compact("\143\141\x72\x73")); } } return redirect()->route("\143\x61\162\56\x69\x6e\x64\x65\170"); } }

Function Calls

None

Variables

None

Stats

MD5 3640a54d25432ed897b5cf2b71c4d86f
Eval Count 0
Decode Time 125 ms