@extends('layouts.app') @section('content')

Customer : {{ $customer->name }}

{!! Form::open([ 'method'=>'DELETE', 'url' => ['admin/customer', $customer->id], 'style' => 'display:inline' ]) !!} {!! Form::button(' Delete', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Customer', 'onclick'=>'return confirm("Confirm delete?")' ))!!} {!! Form::close() !!}

ID{{ $customer->id }}
Name {{ $customer->name }}
Company Name {{ $customer->company_name }}
Phone No {{ $customer->phone_no }}
Landline No {{ $customer->landLine_no }}
Email {{ $customer->email }}
Website {{ $customer->website }}
Fax No {{ $customer->fax_no }}
Summary @php $sum = 0; @endphp @foreach($charge as $c) @if($c->currency == 'USD') @php $sum += $c->amount; @endphp @endif @endforeach @php $sum1 = 0; @endphp @foreach($charge as $c) @if($c->currency == 'MZM') @php $sum1 += $c->amount; @endphp @endif @endforeach @php $sum2 = 0; @endphp @foreach($charge as $c) @if($c->currency == 'ZAR') @php $sum2 += $c->amount; @endphp @endif @endforeach USD : {{ $sum }} | MZM : {{ $sum1 }} | ZAR : {{ $sum2 }}
Status {!! $customer->status == 0 ? 'Inactive' : 'Active' !!}
@permission('customer-service-create')
Service Records
@foreach($service as $item) @endforeach
Service Type Product Corridor 20 Heavy Rate 40 Rate BB Rate Validity From Validity To Action
{{ $item->service }} {{ $item->type }} {{ $item->product['name'] }} {{ $item->corridor['origin'] }} - {{ $item->corridor['destination'] }} {{ $item->twenty_heavy_rate }} {{ $item->forty_rate }} {{ $item->bb_rate }} {{ $item->validity_from }} {{ $item->validity_to }} @if($item->service == 'logistic') @endif
@endpermission
@endsection