@if(session()->get('flash_danger'))
@if(is_array(json_decode(session()->get('flash_danger'), true)))
{!! implode('', session()->get('flash_danger')->all(':message
')) !!} @else {!! session()->get('flash_danger') !!} @endif
@endif
@if(request()->input('pc') == '1')
')) !!} @else {!! session()->get('flash_danger') !!} @endif
Seems like you have returned from PayPal without making payment, would you like to pay using Credit Card?
@endif
@if(!$data['customer'])
{{--
Lost your password?
{{ html()->form()->close() }}
--}}
@endif
Returning customer? Click here to login
--}}Returning customer? Click here to login
{{--If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing & Shipping section.
{{ html()->form('POST', route('frontend.auth.login.post'))->open() }}
{{ html()->label(__('validation.attributes.frontend.email'))->for('email') }}
{{ html()->email('email')
->class('text_input')
->placeholder(__('validation.attributes.frontend.email'))
->attribute('maxlength', 191)
->required() }}
{{ html()->label(__('validation.attributes.frontend.password'))->for('password') }}
{{ html()->password('password')
->class('text_input')
->placeholder(__('validation.attributes.frontend.password'))
->required() }}
Please select from already saved addresses:
@if($data['customer'] && count($data['customer']->addresses) > 0) @foreach($data['customer']->addresses as $address) @endforeach
{!! Form::open(array('method' => 'POST', 'id' => 'frm_checkout_address')) !!}
@if(!$data['customer'])
{!! Form::label('email', 'Email Address:') !!}
{{-- {!! Form::text('email', $data['v_shipping_details']['email'], ['required' => 'required', 'class' => 'text_input', 'placeholder' => 'Enter email address ...', 'id' => 'sp_email', 'type' => 'email']) !!} --}}
@endif
{!! Form::label('first_name', 'First Name:') !!}
{!! Form::text('first_name', $data['v_shipping_details']['first_name'],['required' => 'required', 'placeholder'=>'Enter first name ...', 'class' => 'text_input']) !!}
{!! Form::label('last_name', 'Last Name:') !!}
{!! Form::text('last_name', $data['v_shipping_details']['last_name'],['required' => 'required', 'placeholder'=>'Enter last name ...', 'class' => 'text_input']) !!}
{!! Form::label('company', 'Company:') !!}
{!! Form::text('company', $data['v_shipping_details']['company'],['placeholder'=>'Enter company name ...', 'class' => 'text_input']) !!}
{!! Form::text('address1', $data['v_shipping_details']['address1'],['required' => 'required', 'placeholder'=>'Enter address line 1...', 'id' => 'address1', 'class' => 'text_input']) !!}
{!! Form::text('address2', $data['v_shipping_details']['address2'],['placeholder'=>'Enter address line 2 ...', 'id' => 'address2', 'class' => 'text_input']) !!}
{!! Form::label('country', 'Country:') !!}
{!! Form::select('country', $data['countries'], $data['v_shipping_details']['country'],['class' => 'form-control', 'required' => 'required', 'class' => 'text_input', 'onchange="get_states(this.value);"', 'placeholder'=>'Select country ...']) !!}
{!! Form::label('state', 'State:') !!}
@php
$show_text_field = true;
if(isset($data['address']))
{
if(is_numeric($data['address']->state))
$show_text_field = false;
}
@endphp
@if($show_text_field)
{!! Form::text('state', $data['v_shipping_details']['state'], ['required' => 'required', 'placeholder'=>'Enter state ...', 'class' => 'text_input']) !!}
@else
{!! Form::select('state', $data['states'], $data['v_shipping_details']['state'],['class' => 'text_input', 'required' => 'required', 'placeholder'=>'Enter state ...']) !!}
@endif
{!! Form::label('city', 'City:') !!}
{!! Form::text('city', $data['v_shipping_details']['city'],['required' => 'required', 'placeholder'=>'Enter city ...', 'class' => 'text_input']) !!}
{!! Form::label('zip', 'Zip / Post Code:') !!}
{!! Form::text('zip', $data['v_shipping_details']['zip'],['required' => 'required', 'maxlength'=>'8', 'placeholder'=>'Enter zip / post code ...', 'class' => 'checkout_zip_code text_input', 'id' =>'checkout_zip']) !!}
{!! Form::label('phone', 'Phone:') !!}
{{-- {!! Form::text('phone', $data['v_shipping_details']['phone'],['required' => 'required','pattern'=>"\d*",'maxlength'=>'13', 'placeholder'=>'Enter phone ...', 'class' => 'text_input' , 'id' =>'checkout_phone']) !!} --}}
{{ html()->text('phone')->value($data['v_shipping_details']['phone'])
->placeholder(__('validation.attributes.frontend.phone'))
->class(['phone', 'text_input'])
->id('phone')
->required()
->style('transition:none') }}
@if($data['customer'] && count($data['customer']->addresses) > 0)
@endif
{!! Form::close() !!}
{!! Form::open(array('method' => 'POST', 'id' => 'frm_checkout_shipping')) !!}
{{-- {!! Form::open(array('route' => 'frontend.save-order', 'method' => 'POST', 'id' => 'frm_checkout_shipping')) !!} --}}
@php
if((!empty($data['shipping_details']['email']) && !isset($data['shipping_rate'])) || $data['checkout_step'] == '2')
$css = '';
else
$css = 'class="collapse"';
@endphp
{!! Form::close() !!}
Please select the shipping service to continue.
@if(isset($data['rates']) && !isset($data['rates']['status']))
@foreach($data['rates'] as $service)
@endforeach
@elseif(isset($data['rates']) && isset($data['rates']['status']) && $data['rates']['status'] == 0)
@endif
@php
$notes = '';
if(isset($data['shipping_details']['notes']))
$notes = $data['shipping_details']['notes'];
@endphp
{{ $data['rates']['message'] }}
@else
Sorry, no quotes are available for this order at this time.@endif
{!! Form::label('notes', 'Shipping / Order Notes:') !!}
{!! Form::textarea('notes', $notes, ['rows' => 4, 'placeholder'=>'Notes about your order, e.g. special notes for delivery ...', 'class' => 'form-control']) !!}
{!! Form::textarea('notes', $notes, ['rows' => 4, 'placeholder'=>'Notes about your order, e.g. special notes for delivery ...', 'class' => 'form-control']) !!}
@php
if((!empty($data['shipping_details']['email']) && isset($data['shipping_rate'])) || $data['checkout_step'] == '3')
$css = '';
else
$css = 'class="collapse"';
@endphp
{!! Form::open(array('route' => 'frontend.save-order', 'method' => 'POST', 'id' => 'frm_payment_method')) !!}
{!! Form::hidden('payment_method', null, ['id' => 'payment_method']) !!}
@if($data['customer'] && $data['customer']->group->bank_payment == 'Y')
@endif
{!! Form::hidden('h_shipping_details_exists', $data['h_shipping_details_exists'], ['id' => 'h_shipping_details_exists']) !!}
{!! Form::hidden('h_shipping_method_exists', $data['h_shipping_method_exists'], ['id' => 'h_shipping_method_exists']) !!}
{!! Form::close() !!}
Pay Using PayPal |
![]() |
Fast, easy and secure |
Pay Using Credit / Debit Card |
![]() |
Visa, AMEX, MasterCard, Discover |
Pay By Bank Transfer |
![]() |
{!! \App\Models\Settings::getSettingValue(1) !!} |
Order Review
Product Total
-
@php
$sub_total = 0;
$bogo_discount = 0;
@endphp
@foreach($data['cart'] as $cart)
@php
//$sub_total += $cart->getPriceWithConditions();
$item_price = $cart->getPriceWithConditions();
$total_price = $cart->getPriceSumWithConditions();
if($cart->bogo_free)
{
$total_price_discount = $cart->bogo_free * $item_price;
$bogo_discount += $total_price_discount;
$talal_price_after_bogo = $total_price - $total_price_discount;
}
if($cart->bogod_count)
{
$discounted_price = ($item_price * $cart->bogod_percent) / 100;
$total_price_discount = $cart->bogod_count * $discounted_price;
$bogo_discount += $total_price_discount;
$talal_price_after_bogo = $total_price - $total_price_discount;
}
$sub_total += $total_price;
@endphp
-
{{ $cart->name }}
• {{ $cart->attributes->sku }} ({{ $cart->quantity }}) @if($cart->bogo_free)
{{ $cart->bogo_free }} free @if($cart->bogo_free > 1) items @else item @endif @elseif($cart->bogod_count)
{{ $cart->bogod_percent }}% discount on {{ $cart->bogod_count }} @if($cart->bogod_count > 1) items @else item @endif @endif @if($cart->bogo_free || $cart->bogod_count) ${{ number_format($talal_price_after_bogo, 2) }} {{--{{ $cart->bogo_free }} free @if($cart->bogo_free > 1) items @else item @endif--}} @else bogo_free || $cart->bogod_count) class="old-price" @endif>${{ number_format($cart->getPriceSumWithConditions(), 2) }} @endif
@endforeach
Sub Total ${{ number_format($sub_total, 2) }}
Discount ${{ number_format($discount, 2) }}
Shipping Fee {{ $data['shipping_rate'] ?? "$0.00" }}