List of Laptops
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
| Serial Number |
Model Name |
Company Name |
RAM |
Storage |
SSD/HDD |
Processor |
Generation |
Purchase Date |
Purchase Amount |
Warranty Status |
Warranty Expiry Date |
Actions |
@foreach($laptops as $laptop)
| {{ $laptop->serial_number }} |
{{ $laptop->model_name }} |
{{ $laptop->company_name }} |
{{ $laptop->ram }} |
{{ $laptop->storage }} |
{{ ucfirst($laptop->ssd_hdd) }} |
{{ $laptop->processor }} |
{{ $laptop->generation }} |
{{ $laptop->purchase_date ? \Carbon\Carbon::parse($laptop->purchase_date)->format('Y-m-d') : 'N/A' }} |
{{ $laptop->purchase_amount ? '₹' . number_format($laptop->purchase_amount, 2) : 'N/A' }} |
{{ ucfirst($laptop->warranty_status) }} |
{{ $laptop->warranty_expiry_date ? \Carbon\Carbon::parse($laptop->warranty_expiry_date)->format('Y-m-d') : 'N/A' }} |
|
@endforeach
Add New Laptop
@endsection