@extends('admin.layouts.app') @section('title', 'Parcel Manifest') @section('content') @include('admin.includes.alerts')
@foreach($manifests as $i => $manifest) @endforeach
No Kind Serial# Sender Receiver From-To Cash Clerk Office Date
{{$i+1}} {{$manifest->parcel}} {{$manifest->trackingNumber}} {{$manifest->sender}} {{$manifest->receiver}} @php $addressA = \App\Models\Office::where(['id' => $manifest->sentOffice])->first()->address; $from = $addressA; echo $from.'-'.$manifest->destination; @endphp {{$manifest->amount}} @php $agent = \App\Models\Agent::where(['id' => $manifest->senderAgent])->first()->name; echo $agent; @endphp @php $location = \App\Models\Office::where(['id' => $manifest->sentOffice])->first()->location; echo $location; @endphp {{$manifest->dateSent}}
@endsection