@php $badge_colors = [ 'success' => '#29a645', 'secondary' => '#686868', ]; $background_color_badges = [ 'success' => '#daf6df', 'secondary' => '#ededed', ]; @endphp
Vendor Purchase Report |
{{ $company->name }} |
{{$data->store_name}} |
No | Model # | Received Date | Condition | Serial # | Inventory Status | Cost (Actual) | Age (Received) | @if($is_reserved)Age (Reserved) | @endif
---|---|---|---|---|---|---|---|---|
{{$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'}} | @if($is_reserved){{$detail->reserved_age}} {{$detail->reserved_age > 1 ? 'Days' : 'Day'}} | @endif