@extends('layouts.argon') @section('content')
Search dispatch history record here!
@csrf

Dispatch Recod
@foreach ($dispatchhistory as $history) @endforeach
Sr No. Department Issue date Item Item Issue
{{ $loop->iteration }}
@php $getdep = DB::table('odepartments')->where('id', $history->department_id)->first(); $getsection = DB::table('departments')->where('id', $history->section_id)->first(); @endphp @if(isset( $getdep->name))
{{ $getdep->name }}
@endif @if(isset($getsection->name))

{{ $getsection->name }}

@endif
{{ \Carbon\Carbon::parse($history->created_at)->format('j F, Y') }} @php $getcat = DB::table('asset_heads')->where('id', $history->cat_id )->first(); @endphp @if(isset($getcat->name)) {{ $getcat->name }} @endif

{{ $history->name }}

{{ $history->qty_issue }}
@endsection