@extends('layouts.b2cMaster') @section('getStarted') var error = "{{(Session::has('success') ? Session::get('success') : '')}}"; @if(!$errorMail) if(error != '') { set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "event54" , "" , "" , "" , "" , "" , "" , "" , ""); var gt_profit = 0; var profit_hot = 0; var profit_flt = 0; var gt_customers = 0; var ins_profit = 0; @if(isset($booking['hotel'])) @foreach($booking['hotel']['options']['option'] as $one_room) gt_profit += {{((float)$one_room['prices']['total']['retail'] - (float)$one_room['prices']['total']['cost'])}}; gt_customers += {{((float)$one_room['prices']['total']['retail'] + (float)$one_room['prices']['total']['othertotal'])}}; @foreach($one_room['prices']['paxgroup'] as $pax) @if(isset($pax['components']['HOT']['retail'])) profit_hot += {{(((float)$pax['components']['HOT']['retail'] - (float)$pax['components']['HOT']['cost']) * (int)$pax['qty'])}}; profit_flt += {{(((float)$pax['components']['AIR']['retail'] - (float)$pax['components']['AIR']['cost']) * (int)$pax['qty'])}}; @else profit_hot += {{(((float)$pax['retail'] - (float)$pax['cost']) * (int)$pax['qty'])}}; @endif @endforeach @endforeach set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "event58" , "" , "" , "" , "" , "" , "" , "" , gt_profit); // Total revenue F + H set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "event59" , "" , "" , "" , "" , "" , "" , "" , profit_hot); // Hotel revenue set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "event60" , "" , "" , "" , "" , "" , "" , "" , profit_flt); // Fly revenue set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "Gross Sales" , "" , "" , "" , "" , "" , "" , "" , gt_customers); // Total for a customers @if(isset($booking['booking_output']['add']['locator']) && $booking["booking_output"]["add"]["locator"] != "ERROR") @if(isset($booking["booking_output"]["add"]["details"][0]["commission"])) ins_profit = {{$booking["booking_output"]["add"]["details"][0]["commission"]}}; @endif set_omniture("FN:Flight+Hotel:Purchase Confirmation" , "event3" , "" , "" , "" , "" , "" , "" , "" , ins_profit); // Insurance revenue @endif @endif @if(_ACCOUNT == "VBG") ga('newTracker.require', 'ecommerce'); ga('newTracker.ecommerce:addTransaction', { 'id': '{{$res_booking->id}}', 'affiliation': 'Voyages Gendron B2C', 'revenue': '{{$res_booking->grandTotal()}}' }); @foreach($res_booking->components as $comp) ga('newTracker.ecommerce:addItem', { 'id': '{{$res_booking->id}}', 'name': '{{str_replace("'","\'",$comp->title)}}', 'sku': '{{$comp->id}}', 'category': '{{$comp->type}}', 'price': '{{$comp->grand_total}}', 'quantity': '1' }); @endforeach ga('newTracker.ecommerce:send'); @endif } @endif @endsection @section('linkscript') @stop @section('pageStyle') .package-search { display:none; } @if(_HIDE_SEARCH_AT_BOOK == 1) .search-header { display:none; } @endif #mapcanvas { height: 580px; width:848px; /*margin: auto; padding: 0;*/ } .back-button { display:none; } .scrollBar { overflow-y:auto; color:#000000; } .icon_map { display:visible; } .result_container { display:none; } .greyBar { width:100%; height:2px; background-color:#E3E8EA; margin-top:5px; margin-bottom:5px; z-index:100000; } .summary { width:100%; margin-bottom:10px; background-color:#08C; font-weight:bold; text-align:center; height:44px; color:#FFFFFF; font-size:16px; line-height:44px; } .summaryBox { padding:10px; background-color:#EEE; } .price { font-size:20px; color:#08C; font-weight:bold; } .title { font-size:16px; color:#08C; } .blueText { color:#08C; } .pagination { color:#2998E5; margin:0px 2px 0px 2px; padding:3px 5px 3px 5px; display:inline-block; line-height:4px; cursor:pointer; } .pagination-select { color:#000; border-radius:4px; border:1px solid gray; padding:3px 5px 3px 5px; display:inline-block; } .reslynx-invoice-table { cellpadding:0px; cellspacing:0px; border:0px; align:center; width:870px; margin:0px auto; } .reslynx-invoice-table-container { background: #d5e4f3;color:#1e5592; border-radius: 5px; padding: 55px 30px 5px 30px; } @endsection @include('b2c.php_function') @section('bookInfo') @if(!$errorMail)