Lead create Booking
This commit is contained in:
parent
3df0e93c2c
commit
34a3d2196b
18 changed files with 462 additions and 160 deletions
|
|
@ -60,6 +60,11 @@ class LeadController extends Controller
|
|||
{
|
||||
$data = Request::all();
|
||||
|
||||
if($data['action'] === 'createBooking'){
|
||||
$lead = $this->leadRepo->createBooking($id, $data);
|
||||
\Session()->flash('alert-save', '1');
|
||||
return redirect(route('lead_detail', [$id]).'#collapseLeadBooking');
|
||||
}
|
||||
if($data['action'] === 'saveCustomer'){
|
||||
$customer = $this->custRepo->updateCustomerFromLead($id, $data);
|
||||
\Session()->flash('alert-save', '1');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue