@extends('layouts.admin.admin') @section('title', 'Wrenches Location History') @section('content')
@include('partials.header') @include('partials.sidebar')
Inventory ManagementWrench LookupWrench DetailsWrench Location History

Wrench Location History
Wrench Id:
{{$wrench->id}}
Serial Number:
{{$wrench->serial_number}}
@php echo $historycount = count($wrench->locationhistory); $i=1; @endphp @foreach($wrench->locationhistory as $history) @php if($i ==$historycount){ $active = 'status-current blinker'; } else { $active = 'status-intransit'; } @endphp
{{ \Carbon\Carbon::parse($history->receipt_date)->format('d/m/Y') }}
@if($history->location_type == 'store')
Store Id: {{$history->store->store_number}}, {{$history->store->city}}, {{$history->store->state}}
@else
Warehouse
@endif
@php $i++; @endphp @endforeach {{--
01/12/2023
Store Id: 1122, Hermitage, Tennessee
--}} {{--
10/12/2023
Warehouse
--}} {{--
11/03/2023
Store Id: 0567, Austin, Texas
--}}
@stop