@extends('admin.layout.master') @section('title', "المركبات") @section('content')

المركبات

{{-- @csrf--}}
@if ($errors->has('mark_id')) {{ $errors->first('mark_id') }} @endif
@if ($errors->has('model_id')) {{ $errors->first('model_id') }} @endif
@if ($errors->has('class_id')) {{ $errors->first('class_id') }} @endif
@if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
@if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
@if ($errors->has('year')) {{ $errors->first('year') }} @endif
@if ($errors->has('year')) {{ $errors->first('year') }} @endif
@if ($errors->has('captain_date_from')) {{ $errors->first('captain_date_from') }} @endif
@if ($errors->has('captain_date_to')) {{ $errors->first('captain_date_to') }} @endif

المركبات

@foreach($rows as $row) @endforeach
# اسم الكابتن الشركة الطراز الفئة السنة عدد المقاعد اللون رقم اللوحة تاريخ إضافة الكابتن التحكم
{{$i}} {{$row->captain->fullname}} {{$row->mark->name['ar']}} {{$row->model->name['ar']}} {{$row->vehicle_class->name['ar']}} {{$row->year}} {{$row->seats_count}} {{$row->color}} {{$row->plate_number}} {{ $row->captain->accept_date ? \Carbon\Carbon::parse($row->captain->accepted_date)->toDateString() : "لم يتم الموافقة بعد"}}
@stop @section('scripts') @stop