@extends('layouts.app') @section('title', 'Serial: '.$serial->serial_no) @section('breadcrumb') @endsection @section('content') @if($timeline)
@php $statusBg = ['in_stock'=>'#d1fae5','sold'=>'#dbeafe','returned'=>'#fef3c7','damaged'=>'#fee2e2','warranty_claim'=>'#ede9fe']; $statusTxt= ['in_stock'=>'#065f46','sold'=>'#1e3a5f','returned'=>'#78350f','damaged'=>'#7f1d1d','warranty_claim'=>'#4c1d95']; @endphp
Current Status
{{ $timeline['status_name'] }}
Product
Product{{ $timeline['product_name'] }}
Variant{{ $timeline['variant_name'] }}
Brand{{ $timeline['brand'] }}
Category{{ $timeline['category'] }}
SKU{{ $timeline['sku'] }}
Purchase
Supplier{{ $timeline['supplier_name'] ?? '—' }}
Invoice{{ $timeline['purchase_invoice'] ?? '—' }}
Date{{ $timeline['purchase_date'] ? \Carbon\Carbon::parse($timeline['purchase_date'])->format('d M Y') : '—' }}
Cost{{ $timeline['purchase_cost'] ? '৳'.number_format($timeline['purchase_cost'],2) : '—' }}
Sale
Customer{{ $timeline['customer_name'] ?? '—' }}
Phone{{ $timeline['customer_phone'] ?? '—' }}
Invoice{{ $timeline['sale_invoice'] ?? '—' }}
Date{{ $timeline['sale_date'] ? \Carbon\Carbon::parse($timeline['sale_date'])->format('d M Y') : '—' }}
Price{{ $timeline['selling_price'] ? '৳'.number_format($timeline['selling_price'],2) : '—' }}
@endif {{-- Update Status Modal --}} @endsection