@extends('frontend.layouts.template') @section('stylesheet') @endsection @section('content')
@if ( !auth()->check() )
{{ trans('label.returning_customer') }}?
@endif
@if ( auth()->guest() || auth()->user()->login_type != 'staff-event' )
@endif @if (\Session::has('error'))

{{ trans('label.error') }}

{!! \Session::get('error') !!}

@endif
@if ( auth()->guest() || auth()->user()->login_type != 'staff-event' )

{{ auth()->guest() ? trans('label.registration') : trans('label.billing_details') }}

@include('frontend.cart.form-shipping')
@endif @if(auth()->check() && auth()->user()->level == 'staff') @if (auth()->user()->login_type == 'staff-event')

{{ trans('label.wbs_code') }}

{{ trans('label.approver') }}

@php $approvers = approvers( auth()->user()->team_code ); @endphp @if ($approvers) @foreach ($approvers as $ap)
@endforeach @endif
@endif
user()->login_type == 'staff-event' ? 'checked' : '' }} type="checkbox" name="shipping_head" id="free">
{{ trans('msg.company_shipping_day')}}
@endif

{{ trans('label.additional_information') }}

{{ trans('label.your_orders') }}

@if ($carts) @foreach ($carts as $cart) @php $subtotal += ($cart->price * $cart->quantity); $shipping_price += $cart->shipping_price; @endphp @endforeach @endif @if ( auth()->check() && auth()->user()->level == 'staff' && auth()->user()->login_type != 'staff-event' ) @php $discount = $subtotal * 10 / 100; $subtotal = $subtotal - $discount; @endphp @endif @if ( auth()->guest() || ( auth()->check() && auth()->user()->login_type != 'staff-event') ) {{-- --}} @endif {{-- Start Coupon Code --}} @if ( auth()->guest() || auth()->user()->login_type != 'staff-event' ) @endif {{-- End Coupon Code --}} @php $net = $subtotal + $shipping_price; @endphp
{{ trans('label.product') }} {{ trans('label.total') }}
{{ $cart->product_name }} x {{ $cart->quantity }} ฿{{ nb($cart->price * $cart->quantity,2) }}
{{ trans('label.staff_discount') }} {{ nb( $discount,2) }}
{{ trans('label.subtotal') }} ฿{{ nb( $subtotal,2) }}
{{ trans('label.shipping') }} {{ nb( $shipping_price,2 )}}Free Shipping
@if ( auth()->guest() || auth()->user()->login_type != 'staff-event' )
{{ trans('label.have_a_coupon')}}

{{ trans('label.if_you_have_coupon') }}

@endif
{{ trans('label.totals') }} ฿{{ nb( $net,2) }}

{{ trans('label.payment') }}

{{ trans('msg.payment_description') }}

@if ( count($carts) > 0 ) @endif
@endsection @section('modals') @include('frontend.cart.inc-modal-change-address') @endsection @section('javascript') @if( Auth::check() ) @endif @endsection