Viewing file: index.blade.php (8 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin') @section('page-title') {{__('Taxi')}} @endsection @push('script-page')
@endpush @section('breadcrumb') <li class="breadcrumb-item"><a href="{{route('dashboard')}}">{{__('Dashboard')}}</a></li> <li class="breadcrumb-item">{{__('Taxi')}}</li> @endsection @section('action-btn') <div class="float-end">
<a href="#" data-size="lg" data-url="{{ route('taxi.create') }}" data-ajax-popup="true" data-bs-toggle="tooltip" title="{{__('Create')}}" data-title="{{__('Create Taxi')}}" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> </a>
</div> @endsection
@section('content') @php $profile=\App\Models\Utility::get_file('uploads/avatar/'); @endphp <div class="row"> <div class="col-xl-12"> <div class="card p-2"> <div class="card-body table-border-style"> <div class="table-responsive"> <table id="taxi" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th>{{__('Vehicle details')}}</th> <th>{{__('Vehicle Images')}}</th> <th>{{__('Vehicle Liecnse')}}</th> <th>{{__('Tag Expiration Info')}}</th> <th>{{__('Insurance Images')}}</th> <th>{{__('Driver')}}</th> <th>{{__('Action')}}</th> </tr> </thead> <tbody> @if ($taxies->isNotEmpty()) @foreach ($taxies as $taxi) <tr class="font-style"> <td> <div class="vehicle_details">{{__('Brand Name :')}} {{ isset($taxi->brand_name) ? $taxi->brand_name : '' }}</div> <div class="vehicle_details">{{__('Model :')}} {{ isset($taxi->model) ? $taxi->model : '' }}</div> <div class="vehicle_details">{{__('Color :')}} {{ isset($taxi->color) ? $taxi->color : '' }} </div> <div class="vehicle_details">{{__('Year :')}} {{ isset($taxi->year) ? $taxi->year : '' }}</div> <div class="vehicle_details">{{__('No Of Seats :')}} {{ isset($taxi->no_of_seats) ? $taxi->no_of_seats : '' }} </div> <div class="vehicle_details">{{__('VIN :')}} {{ isset($taxi->vin) ? $taxi->vin : '' }} </div> <div class="vehicle_details mt-1">{{__('Vehicle Type :')}} <span class="bg-info text-white p-1"> {{ isset($taxi->vehicle_type) ? $taxi->vehicle_type : '' }} </span></div> </td>
<td> @if (isset($taxi->vehicle_image) && $taxi->vehicle_image) <div class="image_details"> <img data-enlargable src="{{ ($taxi->vehicle_image) ? $profile . $taxi->vehicle_image : $profile . 'avatar.png' }}" class="taxi-img" alt="" height="90" width="90"> </div> @endif </td>
<td> @if (isset($taxi->liecnse) && $taxi->liecnse) <div class="image_details mt-1"> <img data-enlargable src="{{ ($taxi->liecnse) ? $profile . $taxi->liecnse : $profile . 'avatar.png' }}" class="taxi-img" alt="" height="90" width="90"> </div> @endif </td>
<td> @if (isset($taxi->te_info) && $taxi->te_info) <div class="image_details mt-1"> <img data-enlargable src="{{ ($taxi->te_info) ? $profile . $taxi->te_info : $profile . 'avatar.png' }}" class="taxi-img" alt="" height="90" width="90"> </div> @endif </td>
<td> @if (isset($taxi->insurance_info) && $taxi->insurance_info) <div class="image_details mt-1"> <img data-enlargable src="{{ ($taxi->insurance_info) ? $profile . $taxi->insurance_info : $profile . 'avatar.png' }}" class="taxi-img" alt="" height="90" width="90"> </div> @endif </td>
<td>{{ isset($taxi->driver->name) ? $taxi->driver->name : '' }}</td>
<td class="Action">
<div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center" data-url="{{ route('taxi.edit',$taxi->id) }}" data-ajax-popup="true" data-size="lg " data-bs-toggle="tooltip" title="{{__('Edit')}}" data-title="{{__('Edit Taxi')}}"> <i class="ti ti-pencil text-white"></i> </a> </div>
<div class="action-btn bg-danger ms-2"> {!! Form::open(['method' => 'DELETE', 'route' => ['taxi.destroy', $taxi->id],'id'=>'delete-form-'.$taxi->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Delete')}}"><i class="ti ti-trash text-white"></i></a> {!! Form::close() !!} </div>
</td>
</tr> @endforeach @else <tr class="font-style text-center"> <td colspan="7">No Data Available</td> </tr> @endif </tbody> </table> </div> </div> </div> </div> </div> <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> <script> $('img[data-enlargable]').addClass('img-enlargable').click(function(){ var src = $(this).attr('src'); $('<div>').css({ background: 'RGBA(0,0,0,.5) url('+src+') no-repeat center', backgroundSize: 'contain', width:'100%', height:'100%', position:'fixed', zIndex:'10000', top:'0', left:'0', cursor: 'zoom-out' }).click(function(){ $(this).remove(); }).appendTo('body'); }); </script> @endsection
|