@extends('admin.layout') @section('title', 'إدارة المركبات') @section('page-title', 'إدارة المركبات') @section('content')

أسطول المركبات

إدارة مخزون المركبات وحالتها

إضافة مركبة
@if($vehicles->count() > 0)
@foreach($vehicles as $vehicle) @endforeach
المركبة الفئة الحالة السعر اليومي الحجوزات الإجراءات
@if($vehicle->primaryImage) {{ $vehicle->name }} @else @endif
{{ $vehicle->name }}
{{ $vehicle->year }} • {{ $vehicle->color }}
{{ $vehicle->category->name }}
@csrf @method('PATCH')
${{ number_format($vehicle->daily_rate, 0) }}
per day
{{ $vehicle->bookings->count() }}
total bookings
@if($vehicles->hasPages())
{{ $vehicles->links() }}
@endif @else

{{ __('No Vehicles Found') }}

{{ __('Start by adding your first vehicle to the fleet.') }}

{{ __('Add Vehicle') }}
@endif
{{ $vehicles->total() }}
{{ __('Total Vehicles') }}
{{ $vehicles->where('status', 'available')->count() }}
{{ __('Available') }}
{{ $vehicles->where('status', 'rented')->count() }}
{{ __('Currently Rented') }}
{{ $vehicles->where('status', 'maintenance')->count() }}
{{ __('In Maintenance') }}
@push('styles') @endpush @endsection