Initial commit - Car Rental Management System
This commit is contained in:
commit
f72173377a
100 files changed
+15201
No files matched your search
@@ -0,0 +1,49 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Services')
|
||||
|
||||
@section('content')
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<div>
|
||||
<h2 class="text-xl font-bold text-gray-800">Services</h2>
|
||||
<p class="text-gray-500 text-sm">Track maintenance & services</p>
|
||||
</div>
|
||||
<a href="{{ route('services.create') }}" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 flex items-center gap-2 text-sm font-medium">
|
||||
<i class="fas fa-plus"></i> Schedule Service
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden">
|
||||
<table class="w-full">
|
||||
<thead class="bg-gray-50 border-b border-gray-200">
|
||||
<tr>
|
||||
<th class="px-5 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Car</th>
|
||||
<th class="px-5 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Type</th>
|
||||
<th class="px-5 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Date</th>
|
||||
<th class="px-5 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Cost</th>
|
||||
<th class="px-5 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-100">
|
||||
@forelse($services as $service)
|
||||
<tr class="hover:bg-gray-50">
|
||||
<td class="px-5 py-4 text-gray-800 text-sm">{{ $service->car->brand }} {{ $service->car->model }}</td>
|
||||
<td class="px-5 py-4 text-gray-600 text-sm capitalize">{{ str_replace('_', ' ', $service->type) }}</td>
|
||||
<td class="px-5 py-4 text-gray-600 text-sm">{{ $service->service_date->format('M d, Y') }}</td>
|
||||
<td class="px-5 py-4 text-gray-800 font-medium text-sm"> BHD {{ number_format($service->cost, 0) }}</td>
|
||||
<td class="px-5 py-4">
|
||||
<span class="px-2.5 py-1 rounded-full text-xs font-medium
|
||||
{{ $service->status == 'completed' ? 'bg-green-100 text-green-700' : 'bg-amber-100 text-amber-700' }}">
|
||||
{{ ucfirst($service->status) }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5" class="px-5 py-8 text-center text-gray-500">No services recorded</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in new issue
Block a user