@php $badge_colors = [ 'success' => '#29a645', 'secondary' => '#686868', ]; $background_color_badges = [ 'success' => '#daf6df', 'secondary' => '#ededed', ]; @endphp Inventory Aging Report
Vendor Purchase Report
{{ $company->name }}
{{$data->store_name}}
@if($is_reserved) @endif @foreach($data->details as $detail) @if($is_reserved) @endif @endforeach
No Model # Received Date Condition Serial # Inventory Status Cost (Actual) Age (Received)Age (Reserved)
{{$loop->index+1}} {{$detail->sku}} {{\Carbon\Carbon::parse($detail->received_date)->format('m/d/Y')}} {{$detail->condition_name}} {{$detail->serial_number}} @php $color_code = $detail->inventory_status == 'Available' ? 'success' : 'secondary'; $badge_color = $badge_colors[$color_code]; @endphp
{{$detail->inventory_status}}
${{float_value($detail->cost)}} {{$detail->received_age}} {{$detail->received_age > 1 ? 'Days' : 'Day'}}{{$detail->reserved_age}} {{$detail->reserved_age > 1 ? 'Days' : 'Day'}}