本文整理匯總了PHP中Illuminate\Support\Facades\Request::old方法的典型用法代碼示例。如果您正苦於以下問題:PHP Request::old方法的具體用法?PHP Request::old怎麽用?PHP Request::old使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Support\Facades\Request
的用法示例。
在下文中一共展示了Request::old方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getExceptionData
private function getExceptionData($exception)
{
$data = [];
$data['host'] = Request::server('HTTP_HOST');
$data['method'] = Request::method();
$data['fullUrl'] = Request::fullUrl();
if (php_sapi_name() === 'cli') {
$data['host'] = parse_url(config('app.url'), PHP_URL_HOST);
$data['method'] = 'CLI';
}
$data['exception'] = $exception->getMessage();
$data['error'] = $exception->getTraceAsString();
$data['line'] = $exception->getLine();
$data['file'] = $exception->getFile();
$data['class'] = get_class($exception);
$data['storage'] = array('SERVER' => Request::server(), 'GET' => Request::query(), 'POST' => $_POST, 'FILE' => Request::file(), 'OLD' => Request::hasSession() ? Request::old() : [], 'COOKIE' => Request::cookie(), 'SESSION' => Request::hasSession() ? Session::all() : [], 'HEADERS' => Request::header());
$data['storage'] = array_filter($data['storage']);
$count = $this->config['count'];
$data['exegutor'] = [];
$data['file_lines'] = [];
$file = new SplFileObject($data['file']);
for ($i = -1 * abs($count); $i <= abs($count); $i++) {
list($line, $exegutorLine) = $this->getLineInfo($file, $data['line'], $i);
$data['exegutor'][] = $exegutorLine;
$data['file_lines'][$data['line'] + $i] = $line;
}
// to make Symfony exception more readable
if ($data['class'] == 'Symfony\\Component\\Debug\\Exception\\FatalErrorException') {
preg_match("~^(.+)' in ~", $data['exception'], $matches);
if (isset($matches[1])) {
$data['exception'] = $matches[1];
}
}
return $data;
}
示例2: newcancelcarpreemption
public function newcancelcarpreemption()
{
if (!$this->hasPermission($this->menuPermissionName)) {
return view($this->viewPermissiondeniedName);
}
if (Auth::user()->isadmin) {
$carpreemptions = CarPreemption::where('status', 0)->doesntHave('carPayment')->orderBy('bookno', 'asc')->orderBy('no', 'asc')->get(['id', 'bookno', 'no']);
} else {
$carpreemptions = CarPreemption::where('provinceid', Auth::user()->provinceid)->where('status', 0)->doesntHave('carPayment')->orderBy('bookno', 'asc')->orderBy('no', 'asc')->get(['id', 'bookno', 'no']);
}
$carpreemptionselectlist = array();
$carpreemptionselectlist[null] = 'เลือกการจอง';
foreach ($carpreemptions as $item) {
$carpreemptionselectlist[$item->id] = $item->bookno . '/' . $item->no;
}
$carpreemptionid = SupportRequest::old('carpreemptionid');
if ($carpreemptionid != null && $carpreemptionid != '') {
$carpreemption = CarPreemption::find($carpreemptionid);
$model = Customer::find($carpreemption->buyercustomerid);
$customer = $model->title . ' ' . $model->firstname . ' ' . $model->lastname;
$model = CarModel::find($carpreemption->carmodelid);
$model2 = CarSubModel::find($carpreemption->carsubmodelid);
$carmodel = $model->name . '/' . $model2->name;
$date = date('d-m-Y', strtotime($carpreemption->date));
$cashpledge = $carpreemption->cashpledge;
$model = Employee::find($carpreemption->salesmanemployeeid);
$salesmanemployee = $model->title . ' ' . $model->firstname . ' ' . $model->lastname;
} else {
$customer = null;
$carmodel = null;
$date = null;
$cashpledge = null;
$salesmanemployee = null;
}
if (Auth::user()->isadmin) {
$toemployees = Employee::where('departmentid', 5)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
} else {
$toemployees = Employee::where('provinceid', Auth::user()->provinceid)->where('departmentid', 5)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
}
$toemployeeselectlist = array();
$toemployeeselectlist[null] = 'เลือกพนักงาน';
foreach ($toemployees as $item) {
$toemployeeselectlist[$item->id] = $item->title . ' ' . $item->firstname . ' ' . $item->lastname;
}
if (Auth::user()->isadmin) {
$accountandfinanceemployees = Employee::where('departmentid', 4)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
} else {
$accountandfinanceemployees = Employee::where('provinceid', Auth::user()->provinceid)->where('departmentid', 4)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
}
$accountandfinanceemployeeselectlist = array();
$accountandfinanceemployeeselectlist[null] = 'เลือกพนักงาน';
foreach ($accountandfinanceemployees as $item) {
$accountandfinanceemployeeselectlist[$item->id] = $item->title . ' ' . $item->firstname . ' ' . $item->lastname;
}
$cancelcarpreemption = new CancelCarPreemption();
return view('cancelcarpreemptionform', ['oper' => 'new', 'pathPrefix' => '../', 'cancelcarpreemption' => $cancelcarpreemption, 'carpreemptionselectlist' => $carpreemptionselectlist, 'toemployeeselectlist' => $toemployeeselectlist, 'accountandfinanceemployeeselectlist' => $accountandfinanceemployeeselectlist, 'customer' => $customer, 'carmodel' => $carmodel, 'date' => $date, 'cashpledge' => $cashpledge, 'salesmanemployee' => $salesmanemployee]);
}
示例3: getSignup
/**
* Handle the signup with invite.
*
* @param string|null $code
*
* @return \Illuminate\View\View
*/
public function getSignup($code = null)
{
if ($code === null) {
//throw new NotFoundHttpException();
}
$invite = Invite::where('code', '=', $code)->first();
if (!$invite || $invite->claimed()) {
//throw new BadRequestHttpException();
}
return View::make('signup')->withCode($invite ? $invite->code : '')->withPageTitle('signup')->withUsername(Request::old('username'))->withEmail(Request::old('emai', $invite ? $invite->email : ''));
}
示例4: newcarpayment
public function newcarpayment()
{
if (!$this->hasPermission($this->menuPermissionName)) {
return view($this->viewPermissiondeniedName);
}
if (Auth::user()->isadmin) {
$carpreemptions = CarPreemption::where('status', 0)->where(function ($query) {
$query->where('carobjectivetype', 1)->orWhere(function ($query) {
$query->where('cashpledgeredlabel', 0)->orWhereHas('redlabelhistories', function ($q) {
$q->whereNull('returndate');
});
});
})->orderBy('bookno', 'asc')->orderBy('no', 'asc')->get(['id', 'bookno', 'no']);
} else {
$carpreemptions = CarPreemption::where('provinceid', Auth::user()->provinceid)->where('status', 0)->where(function ($query) {
$query->where('carobjectivetype', 1)->orWhere(function ($query) {
$query->where('cashpledgeredlabel', 0)->orWhereHas('redlabelhistories', function ($q) {
$q->whereNull('returndate');
});
});
})->orderBy('bookno', 'asc')->orderBy('no', 'asc')->get(['id', 'bookno', 'no']);
}
$carpreemptionselectlist = array();
$carpreemptionselectlist[null] = 'เลือกการจอง';
foreach ($carpreemptions as $item) {
$carpreemptionselectlist[$item->id] = $item->bookno . '/' . $item->no;
}
$carpreemptionid = SupportRequest::old('carpreemptionid');
$carselectlist = array();
$carselectlist[null] = 'เลือกรถ';
$purchasetype0 = false;
$purchasetype1 = false;
$carobjectivetype0 = false;
$carobjectivetype1 = false;
$registrationtype0 = false;
$registrationtype1 = false;
$registrationtype2 = false;
if ($carpreemptionid != null && $carpreemptionid != '') {
$carpreemption = CarPreemption::find($carpreemptionid);
if ($carpreemption->purchasetype == 0) {
$purchasetype0 = true;
$purchasetype1 = false;
} elseif ($carpreemption->purchasetype == 1) {
$purchasetype0 = false;
$purchasetype1 = true;
}
if ($carpreemption->carobjectivetype == 0) {
$carobjectivetype0 = true;
$carobjectivetype1 = false;
} elseif ($carpreemption->carobjectivetype == 1) {
$carobjectivetype0 = false;
$carobjectivetype1 = true;
}
if ($carpreemption->registrationtype == 0) {
$registrationtype0 = true;
$registrationtype1 = false;
$registrationtype2 = false;
} elseif ($carpreemption->registrationtype == 1) {
$registrationtype0 = false;
$registrationtype1 = true;
$registrationtype2 = false;
} elseif ($carpreemption->registrationtype == 2) {
$registrationtype0 = false;
$registrationtype1 = false;
$registrationtype2 = true;
}
if (Auth::user()->isadmin) {
if ($carpreemption->carobjectivetype == 0) {
$cars = Car::doesntHave('carPayment')->where('objective', 0)->where('carmodelid', $carpreemption->carmodelid)->where('carsubmodelid', $carpreemption->carsubmodelid)->where('colorid', $carpreemption->colorid)->orderBy('chassisno', 'asc')->orderBy('engineno', 'asc')->get(['id', 'chassisno', 'engineno']);
} else {
$cars = Car::doesntHave('carPayment')->where('objective', '!=', 0)->where('carmodelid', $carpreemption->carmodelid)->where('carsubmodelid', $carpreemption->carsubmodelid)->where('colorid', $carpreemption->colorid)->orderBy('chassisno', 'asc')->orderBy('engineno', 'asc')->get(['id', 'chassisno', 'engineno']);
}
} else {
if ($carpreemption->carobjectivetype == 0) {
$cars = Car::where('provinceid', Auth::user()->provinceid)->doesntHave('carPayment')->where('objective', 0)->where('carmodelid', $carpreemption->carmodelid)->where('carsubmodelid', $carpreemption->carsubmodelid)->where('colorid', $carpreemption->colorid)->orderBy('chassisno', 'asc')->orderBy('engineno', 'asc')->get(['id', 'chassisno', 'engineno']);
} else {
$cars = Car::where('provinceid', Auth::user()->provinceid)->doesntHave('carPayment')->where('objective', '!=', 0)->where('carmodelid', $carpreemption->carmodelid)->where('carsubmodelid', $carpreemption->carsubmodelid)->where('colorid', $carpreemption->colorid)->orderBy('chassisno', 'asc')->orderBy('engineno', 'asc')->get(['id', 'chassisno', 'engineno']);
}
}
foreach ($cars as $item) {
$carselectlist[$item->id] = $item->chassisno . '/' . $item->engineno;
}
}
$insurancecompanies = InsuranceCompany::orderBy('name', 'asc')->get(['id', 'name']);
$insurancecompanyselectlist = array();
$insurancecompanyselectlist[null] = 'เลือกบริษัท';
foreach ($insurancecompanies as $item) {
$insurancecompanyselectlist[$item->id] = $item->name;
}
if (Auth::user()->isadmin) {
$payeeemployees = Employee::where('departmentid', 4)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
} else {
$payeeemployees = Employee::where('provinceid', Auth::user()->provinceid)->where('departmentid', 4)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
}
$payeeemployeeselectlist = array();
$payeeemployeeselectlist[null] = 'เลือกพนักงาน';
foreach ($payeeemployees as $item) {
$payeeemployeeselectlist[$item->id] = $item->title . ' ' . $item->firstname . ' ' . $item->lastname;
}
$carpayment = new CarPayment();
//.........這裏部分代碼省略.........
示例5: view
public function view($id)
{
if (!$this->hasPermission($this->menuPermissionName)) {
return view($this->viewPermissiondeniedName);
}
$tempModel = AccountingDetail::find($id);
$accountingdetail = (new CarPaymentController())->getforaccountingdetailbyid($tempModel->carpaymentid, 0);
$accountingdetail->id = $tempModel->id;
$accountingdetail->invoiceno = $tempModel->invoiceno;
$accountingdetail->date = date('d-m-Y', strtotime($tempModel->date));
$accountingdetail->additionalopenbill = $tempModel->additionalopenbill;
$accountingdetail->insurancefeereceiptcondition = $tempModel->insurancefeereceiptcondition;
if ($tempModel->payinadvanceamountreimbursementdate != null) {
$accountingdetail->payinadvanceamountreimbursementdate = date('d-m-Y', strtotime($tempModel->payinadvanceamountreimbursementdate));
} else {
$accountingdetail->payinadvanceamountreimbursementdate = null;
}
$accountingdetail->payinadvanceamountreimbursementdocno = $tempModel->payinadvanceamountreimbursementdocno;
$accountingdetail->insurancebilldifferent = $tempModel->insurancebilldifferent;
if ($tempModel->insurancebilldifferent > 0) {
$accountingdetail->note1insurancefeeincludevat = $accountingdetail->note1insurancefeeincludevat + $tempModel->insurancebilldifferent;
$accountingdetail->note1insurancefee = $accountingdetail->note1insurancefeeincludevat * 100 / 107.0;
$accountingdetail->note1insurancefeevat = $accountingdetail->note1insurancefeeincludevat - $accountingdetail->note1insurancefee;
$accountingdetail->incasefinaceinsurancefee = $accountingdetail->incasefinaceinsurancefee + $tempModel->insurancebilldifferent;
$accountingdetail->totalincasefinace = $accountingdetail->totalincasefinace + $tempModel->insurancebilldifferent;
$accountingdetail->incasefinacereceivedcash = $accountingdetail->incasefinacereceivedcash - $tempModel->insurancebilldifferent;
$accountingdetail->incasefinacehassubsidisereceivedcash = $accountingdetail->incasefinacehassubsidisereceivedcash - $tempModel->insurancebilldifferent;
$accountingdetail->note2insurancefeewhtax = $accountingdetail->note1insurancefee / 100.0;
$accountingdetail->ins = $accountingdetail->ins + $tempModel->insurancebilldifferent;
}
$accountingdetail->note1insurancefeereceiptcondition = $tempModel->note1insurancefeereceiptcondition;
$accountingdetail->insurancefeepayment = $tempModel->insurancefeepayment;
if ($tempModel->insurancefeepayment == 1) {
$accountingdetail->note2insurancefeewhtax = 0;
$accountingdetail->totalincasefinace = $accountingdetail->totalincasefinace - $accountingdetail->incasefinaceinsurancefee;
$accountingdetail->incasefinacereceivedcash = $accountingdetail->incasefinacereceivedcash + $accountingdetail->incasefinaceinsurancefee;
$accountingdetail->incasefinacehassubsidisereceivedcash = $accountingdetail->incasefinacehassubsidisereceivedcash + $accountingdetail->incasefinaceinsurancefee;
$accountingdetail->incasefinaceinsurancefee = 0;
}
if ($tempModel->insurancefeepaidseparatelydate != null) {
$accountingdetail->insurancefeepaidseparatelydate = date('d-m-Y', strtotime($tempModel->insurancefeepaidseparatelydate));
} else {
$accountingdetail->insurancefeepaidseparatelydate = null;
}
$accountingdetail->insurancepremiumnet = $tempModel->insurancepremiumnet;
$accountingdetail->insurancepremiumcom = $tempModel->insurancepremiumcom;
$accountingdetail->insurancefeepaidseparatelytotal = $tempModel->insurancefeepaidseparatelytotal;
if ($tempModel->insurancefeereceiptcondition == 0 || $tempModel->insurancefeereceiptcondition == 1) {
$accountingdetail->hasinsurancefee = 1;
if ($tempModel->insurancefeereceiptcondition == 0) {
$accountingdetail->note2insurancefeewhtax = 0;
$accountingdetail->ins = 0;
}
} else {
$accountingdetail->hasinsurancefee = 0;
}
$accountingdetail->compulsorymotorinsurancefeereceiptcondition = $tempModel->compulsorymotorinsurancefeereceiptcondition;
$accountingdetail->note1compulsorymotorinsurancefeereceiptcondition = $tempModel->note1compulsorymotorinsurancefeereceiptcondition;
$accountingdetail->compulsorymotorinsurancefeepayment = $tempModel->compulsorymotorinsurancefeepayment;
if ($tempModel->compulsorymotorinsurancefeepayment == 1) {
$accountingdetail->note2compulsorymotorinsurancefeewhtax = 0;
$accountingdetail->totalincasefinace = $accountingdetail->totalincasefinace - $accountingdetail->incasefinacecompulsorymotorinsurancefee;
$accountingdetail->incasefinacereceivedcash = $accountingdetail->incasefinacereceivedcash + $accountingdetail->incasefinacecompulsorymotorinsurancefee;
$accountingdetail->incasefinacehassubsidisereceivedcash = $accountingdetail->incasefinacehassubsidisereceivedcash + $accountingdetail->incasefinacecompulsorymotorinsurancefee;
$accountingdetail->incasefinacecompulsorymotorinsurancefee = 0;
}
if ($tempModel->compulsorymotorinsurancefeepaidseparatelydate != null) {
$accountingdetail->compulsorymotorinsurancefeepaidseparatelydate = date('d-m-Y', strtotime($tempModel->compulsorymotorinsurancefeepaidseparatelydate));
} else {
$accountingdetail->compulsorymotorinsurancefeepaidseparatelydate = null;
}
$accountingdetail->compulsorymotorinsurancepremiumnet = $tempModel->compulsorymotorinsurancepremiumnet;
$accountingdetail->compulsorymotorinsurancepremiumcom = $tempModel->compulsorymotorinsurancepremiumcom;
$accountingdetail->compulsorymotorinsurancefeepaidseparatelytotal = $tempModel->compulsorymotorinsurancefeepaidseparatelytotal;
if ($tempModel->compulsorymotorinsurancefeereceiptcondition == 0 || $tempModel->compulsorymotorinsurancefeereceiptcondition == 1) {
$accountingdetail->hascompulsorymotorinsurancefee = 1;
if ($tempModel->compulsorymotorinsurancefeereceiptcondition == 0) {
$accountingdetail->note2compulsorymotorinsurancefeewhtax = 0;
$accountingdetail->prb = 0;
}
} else {
$accountingdetail->hascompulsorymotorinsurancefee = 0;
}
$note2totalwhtax = $accountingdetail->note2insurancefeewhtax + $accountingdetail->note2compulsorymotorinsurancefeewhtax + $accountingdetail->note2subsidisewhtax;
$accountingdetail->note2totalwhtax = $note2totalwhtax;
$accountingdetail->cashpledgeredlabelreceiptbookno = $tempModel->cashpledgeredlabelreceiptbookno;
$accountingdetail->cashpledgeredlabelreceiptno = $tempModel->cashpledgeredlabelreceiptno;
if ($tempModel->cashpledgeredlabelreceiptdate != null) {
$accountingdetail->cashpledgeredlabelreceiptdate = date('d-m-Y', strtotime($tempModel->cashpledgeredlabelreceiptdate));
} else {
$accountingdetail->cashpledgeredlabelreceiptdate = null;
}
$accountingdetail->cashpledgereceiptbookno = $tempModel->cashpledgereceiptbookno;
$accountingdetail->cashpledgereceiptno = $tempModel->cashpledgereceiptno;
$accountingdetail->cashpledgereceiptdate = date('d-m-Y', strtotime($tempModel->cashpledgereceiptdate));
$accountingdetail->oldcarcomamount = $tempModel->oldcarcomamount;
if ($tempModel->oldcarcomdate != null) {
$accountingdetail->oldcarcomdate = date('d-m-Y', strtotime($tempModel->oldcarcomdate));
} else {
$accountingdetail->oldcarcomdate = null;
//.........這裏部分代碼省略.........
示例6: reset
/**
* Show the form for finalizing a password reset.
*
* @return \Illuminate\View\View
*/
public function reset()
{
$token = Request::query('token') ?: Request::old('token');
if (!$token) {
return $this->redirect('login');
}
return $this->view('c::auth.reset', ['formAction' => $this->url('attemptReset'), 'token' => $token]);
}
示例7: edit
//.........這裏部分代碼省略.........
foreach ($carsubmodels as $item) {
$carsubmodelselectlist[$item->id] = $item->name;
}
$colorprices = array();
$colors = Color::with(['carModelColors' => function ($query) use($model) {
$query->where('carmodelid', $model->carmodelid);
}])->whereHas('carModelColors', function ($q) use($model) {
$q->where('carmodelid', $model->carmodelid);
})->orderBy('code', 'asc')->get(['id', 'code', 'name']);
$colorselectlist = array();
$colorselectlist[null] = 'เลือกสี';
foreach ($colors as $item) {
$colorselectlist[$item->id] = $item->code . ' - ' . $item->name;
$obj = (object) array("colorid" => $item->id, "price" => $item->carModelColors[0]->price);
array_push($colorprices, $obj);
}
$provinceregistrationfee = array();
$provinces = Province::with(['carModelRegisters' => function ($query) use($model) {
$query->where('carmodelid', $model->carmodelid);
}])->whereHas('carModelRegisters', function ($q) use($model) {
$q->where('carmodelid', $model->carmodelid);
})->orderBy('name', 'asc')->get(['id', 'name']);
$registerprovinceselectlist = array();
$registerprovinceselectlist[null] = 'เลือกจังหวัด';
foreach ($provinces as $item) {
$registerprovinceselectlist[$item->id] = $item->name;
$registrationfee = array();
array_push($registrationfee, (object) array("type" => 0, "price" => $item->carModelRegisters[0]->individualregistercost));
array_push($registrationfee, (object) array("type" => 1, "price" => $item->carModelRegisters[0]->companyregistercost));
array_push($registrationfee, (object) array("type" => 2, "price" => $item->carModelRegisters[0]->governmentregistercost));
$obj = (object) array("provinceid" => $item->id, "registrationfee" => $registrationfee);
array_push($provinceregistrationfee, $obj);
}
$oldcarbrands = CarBrand::where('ismain', false)->orderBy('name', 'asc')->get(['id', 'name']);
$oldcarbrandselectlist = array();
$oldcarbrandselectlist[null] = 'เลือกยี่ห้อรถ';
foreach ($oldcarbrands as $item) {
$oldcarbrandselectlist[$item->id] = $item->name;
}
$oldcarmodels = CarModel::where('carbrandid', $model->oldcarbrandid)->orderBy('name', 'asc')->get(['id', 'name']);
$oldcarmodelselectlist = array();
$oldcarmodelselectlist[null] = 'เลือกแบบ';
foreach ($oldcarmodels as $item) {
$oldcarmodelselectlist[$item->id] = $item->name;
}
if (Auth::user()->isadmin) {
$saleemployees = Employee::where('departmentid', 6)->where('teamid', '<>', 1)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
} else {
$saleemployees = Employee::where('provinceid', Auth::user()->provinceid)->where('departmentid', 6)->where('teamid', '<>', 1)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
}
$saleemployeeselectlist = array();
$saleemployeeselectlist[null] = 'เลือกพนักงาน';
foreach ($saleemployees as $item) {
$saleemployeeselectlist[$item->id] = $item->title . ' ' . $item->firstname . ' ' . $item->lastname;
}
if (Auth::user()->isadmin) {
$salemanageremployees = Employee::where('departmentid', 6)->where('teamid', 1)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
} else {
$salemanageremployees = Employee::where('provinceid', Auth::user()->provinceid)->where('departmentid', 6)->where('teamid', 1)->orderBy('firstname', 'asc')->orderBy('lastname', 'asc')->get(['id', 'title', 'firstname', 'lastname']);
}
$salemanageremployeeselectlist = array();
$salemanageremployeeselectlist[null] = 'เลือกพนักงาน';
foreach ($salemanageremployees as $item) {
$salemanageremployeeselectlist[$item->id] = $item->title . ' ' . $item->firstname . ' ' . $item->lastname;
}
if (Auth::user()->isadmin) {