@extends('layouts.app') @section('content')
| Category | @if($machine->category) {{ $machine->category->name }} @else N/A @endif |
|---|---|
| Client | @if($machine->client) {{ $machine->client->name }} @else N/A @endif |
| Model Number | {{ $machine->model_number ?? 'N/A' }} |
| Serial Number | {{ $machine->serial_number ?? 'N/A' }} |
| Purchase Date | {{ $machine->purchase_date ? $machine->purchase_date->format(company()->date_format) : 'N/A' }} |
| Purchase Cost | {{ $machine->purchase_price ? global_currency_format($machine->purchase_price) : 'N/A' }} |
| Capacity / Efficiency | {{ $machine->capacity ?? 'N/A' }} |
| Operator | @if($machine->operator) {{ $machine->operator->name }} @else N/A @endif |
| Current Location | {{ $machine->current_location ?? 'N/A' }} |
| Fuel Type | {{ $machine->fuel_type ?? 'N/A' }} |
| Insurance Expiry | {{ $machine->insurance_expiry ? $machine->insurance_expiry->format(company()->date_format) : 'N/A' }} |
| Operator | Start Time | End Time | Total Hours | Meter Start | Meter End | Location | Remarks |
|---|---|---|---|---|---|---|---|
| {{ $activity->operator }} | {{ $activity->start_time ? \Carbon\Carbon::parse($activity->start_time)->format(company()->date_format . ' ' . company()->time_format) : 'N/A' }} | {{ $activity->end_time ? \Carbon\Carbon::parse($activity->end_time)->format(company()->date_format . ' ' . company()->time_format) : 'N/A' }} | {{ $activity->total_hours }} Hrs | {{ $activity->meter_start ?? 'N/A' }} | {{ $activity->meter_end ?? 'N/A' }} | {{ $activity->location ?? 'N/A' }} | {{ $activity->remarks ?? 'N/A' }} |
| No activities logged yet. | |||||||
| Maintenance Date | Type | Cost | Service Provider | Remarks |
|---|---|---|---|---|
| {{ $maint->maintenance_date ? \Carbon\Carbon::parse($maint->maintenance_date)->format(company()->date_format) : 'N/A' }} | {{ ucwords(str_replace('_', ' ', $maint->maintenance_type)) }} | {{ global_currency_format($maint->cost) }} | {{ $maint->service_provider ?? 'N/A' }} | {{ $maint->remarks ?? 'N/A' }} |
| No maintenance history recorded yet. | ||||
| Date | Amount | Description |
|---|---|---|
| {{ $inc->income_date ? \Carbon\Carbon::parse($inc->income_date)->format(company()->date_format) : 'N/A' }} | +{{ global_currency_format($inc->amount) }} | {{ $inc->description ?? 'N/A' }} |
| No income records found. | ||
| Date | Amount | Type | Description |
|---|---|---|---|
| {{ $exp->date ? \Carbon\Carbon::parse($exp->date)->format(company()->date_format) : 'N/A' }} | -{{ global_currency_format($exp->amount) }} | {{ ucwords(str_replace('_', ' ', $exp->type)) }} | {{ $exp->description ?? 'N/A' }} |
| No expense records found. | |||