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

Corridor : {{ $corridor->origin }} - {{ $corridor->destination }} - {{ $corridor->border }}

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

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

ID{{ $corridor->id }}
Origin {{ $corridor->origin }}
Destination {{ $corridor->destination }}
Km {{ $corridor->Km }}
Border {{ $corridor->border }}
Fuel Allowed {{ $corridor->fuel_allowed }}
Days {{ $corridor->allowance }}
Summary @php $sum = 0; @endphp @foreach($corridor->corridorcharge as $c) @if($c->currency == 'USD') @php $sum += $c->amount; @endphp @endif @endforeach @php $sum1 = 0; @endphp @foreach($corridor->corridorcharge as $c) @if($c->currency == 'MZM') @php $sum1 += $c->amount; @endphp @endif @endforeach @php $sum2 = 0; @endphp @foreach($corridor->corridorcharge as $c) @if($c->currency == 'ZAR') @php $sum2 += $c->amount; @endphp @endif @endforeach USD : {{ $sum }} | MZM : {{ $sum1 }} | ZAR : {{ $sum2 }}
Status {!! $corridor->status == 0 ? 'Inactive' : 'Active' !!}
Charges Records
@foreach($charge as $item) @endforeach
Charge Amount Currency Remark Actions
{{ $item->charge['name'] }} {{ $item->amount }} {{ $item->currency }} {{ $item->roe }} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/corridor/charge', $item->id , $corridor->id], 'style' => 'display:inline' ]) !!} {!! Form::button(' ', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Category', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection