@extends('layouts.app') @section('content')
{{ Session::get('flash_message') }}
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' !!} |