8889841chome/clixcotz/fmi.clix.co.tz/resources/views/backend/customer_index.blade.php000064400000144524150536610310023457 0ustar00@extends('backend.layout.main') @section('content') @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif @if(session()->has('message'))
{{ session()->get('message') }}
@endif

{{trans('file.welcome')}} {{Auth::user()->name}}

@if($customer->points)

{{trans('file.Reward Points')}}: {{$customer->points}}

{{trans('file.One Point is Equivalent to:')}} @if($general_setting->currency_position == 'prefix') {{$currency->code}} {{$lims_reward_point_setting_data->per_point_amount}} @else {{$lims_reward_point_setting_data->per_point_amount}} {{$currency->code}} @endif

@endif
@foreach($lims_sale_data as $key => $sale) coupon_id); if($coupon) $coupon_code = $coupon->code; else $coupon_code = null; if($sale->sale_status == 1) $status = trans('file.Completed'); elseif($sale->sale_status == 2) $status = trans('file.Pending'); else $status = trans('file.Draft'); $sale_note = preg_replace('/\s+/S', " ", $sale->sale_note); $staff_note = preg_replace('/\s+/S', " ", $sale->staff_note); ?> @if($sale->sale_status == 1) @elseif($sale->sale_status == 2) @else @endif @if($sale->payment_status == 1) @elseif($sale->payment_status == 2) @elseif($sale->payment_status == 3) @else @endif @endforeach
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.Biller')}} {{trans('file.Warehouse')}} {{trans('file.Sale Status')}} {{trans('file.Payment Status')}} {{trans('file.grand total')}} {{trans('file.Paid')}} {{trans('file.Due')}} {{trans('file.action')}}
{{$key}} {{ date($general_setting->date_format, strtotime($sale->created_at->toDateString())) }} {{$sale->reference_no}} {{$sale->biller->name}} {{$sale->warehouse->name}}
{{$status}}
{{$status}}
{{$status}}
{{trans('file.Pending')}}
{{trans('file.Due')}}
{{trans('file.Partial')}}
{{trans('file.Paid')}}
{{number_format($sale->grand_total, 2)}} {{number_format($sale->paid_amount, 2)}} {{number_format($sale->grand_total - $sale->paid_amount, 2)}}
Total: {{number_format(0, $general_setting->decimal, '.', '')}} {{number_format(0, $general_setting->decimal, '.', '')}} {{number_format(0, $general_setting->decimal, '.', '')}}
@foreach($lims_payment_data as $key=>$payment) @endforeach
{{trans('file.Date')}} {{trans('file.Payment Reference')}} {{trans('file.Sale Reference')}} {{trans('file.Amount')}} {{trans('file.Paid Method')}}
{{$key}} {{date($general_setting->date_format, strtotime($payment->created_at))}} {{$payment->payment_reference}} {{$payment->sale_reference}} {{$payment->amount}} {{$payment->paying_method}}
Total: {{number_format(0, $general_setting->decimal, '.', '')}}
@foreach($lims_quotation_data as $key=>$quotation) quotation_status == 1) $status = trans('file.Pending'); else $status = trans('file.Sent'); ?> @if($quotation->supplier_id) @else @endif @if($quotation->quotation_status == 1) @else @endif @endforeach
{{trans('file.Date')}} {{trans('file.reference')}} {{trans('file.Biller')}} {{trans('file.customer')}} {{trans('file.Supplier')}} {{trans('file.Quotation Status')}} {{trans('file.grand total')}} {{trans('file.action')}}
{{trans('file.Total')}}
@foreach($lims_return_data as $key=>$return) @endforeach
{{trans('file.Date')}} {{trans('file.reference')}} {{trans('file.Biller')}} {{trans('file.customer')}} {{trans('file.Warehouse')}} {{trans('file.grand total')}} {{trans('file.action')}}
{{trans('file.Total')}}
@endsection @push('scripts') @endpush