Passolution
This commit is contained in:
parent
f79806ffe8
commit
06fc3ba919
31 changed files with 337 additions and 119 deletions
|
|
@ -90,6 +90,7 @@ class BookingController extends Controller
|
|||
'participant_firstname' => isset($travel_booking->participants[0]['first_name']) ? $travel_booking->participants[0]['first_name'] : null,
|
||||
'participant_birthdate' => isset($travel_booking->participants[0]['birthday']) ? date( "Y-m-d", strtotime($travel_booking->participants[0]['birthday'])) : null,
|
||||
'participant_salutation_id' => isset($travel_booking->participants[0]['gender']) ? $travel_booking->participants[0]['gender'] : null,
|
||||
'nationality_id' => isset($travel_booking->participants[0]['nationality']) ? $travel_booking->participants[0]['nationality'] : null,
|
||||
'travel_company_id' => isset($travel_booking->service_items[0]['travel_company_id']) ? $travel_booking->service_items[0]['travel_company_id'] : null,
|
||||
'price' => $travel_booking->price,
|
||||
'price_total' => $travel_booking->price_total,
|
||||
|
|
@ -113,6 +114,7 @@ class BookingController extends Controller
|
|||
'participant_birthdate' => date( "Y-m-d", strtotime($participant['birthday'])),
|
||||
'participant_salutation_id' => $participant['gender'],
|
||||
'participant_child' => $participant['child'],
|
||||
'nationality_id' =>$participant['nationality'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ class CMSContentController extends Controller
|
|||
'destco' => $destco,
|
||||
'tdat' => $tdat,
|
||||
];
|
||||
$passolution = new Passolution();
|
||||
$passolution->fill($data);
|
||||
$passolution = new Passolution($data);
|
||||
//$passolution->fill($data);
|
||||
$html = $passolution->read();
|
||||
|
||||
return response()->json(['response' => $html]);
|
||||
|
|
@ -71,12 +71,15 @@ class CMSContentController extends Controller
|
|||
'tdat' => $tdat,
|
||||
];
|
||||
|
||||
$passolution = new Passolution();
|
||||
$passolution->fill($data);
|
||||
$html = $passolution->read();
|
||||
|
||||
return response()->json(['success' => true, "response" => $html, "data" => $data], 200, $headers);
|
||||
|
||||
$passolution = new Passolution($data);
|
||||
//$passolution->fill($data);
|
||||
$html = $passolution->read(true);
|
||||
return response()->json(['success' => true,
|
||||
"response" => $html,
|
||||
"pdf"=> $passolution->getPdfPath(['filename', 'url']),
|
||||
"additionalContent" => $passolution->additionalContent,
|
||||
"data" => $data],
|
||||
200, $headers);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue