@extends('layouts.master') @section('title', 'Vehicle Tripe | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.vehicle trip')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))
@endif @endsection @section('content')| {{ __('basic.id') }} | {{ __('basic.type') }} | {{ __('basic.name') }} | {{ __('basic.vehicle') }} | {{ __('basic.from') }} | {{ __('basic.to') }} | {{ __('basic.status') }} | {{ __('basic.buy') }} | {{ __('basic.sell') }} | {{ __('basic.tickets left') }} | {{ __('basic.handle') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item->id }} | @if($item->type == 1) @php $type = __('basic.rent per day'); @endphp @elseif($item->type == 2) @php $type = __('basic.sell by ticket'); @endphp @elseif($item->type == 3) @php $type = __('basic.rides'); @endphp @elseif($item->type == 4) @php $type = __('basic.hours ride'); @endphp @elseif($item->type == 5) @php $type = __('basic.kilometers ride'); @endphp @elseif($item->type == 6) @php $type = __('basic.airport ride'); @endphp @elseif($item->type == 7) @php $type = __('basic.free ride'); @endphp @elseif($item->type == 8) @php $type = __('basic.travel trip'); @endphp @endif {{ $type }} | @if ($item->type == 2) {{ $item->name }} @else {{ $item->name }} @endif | {{ $item->vehicle->name }} |
@if($item->fromable)
- {{ $item->fromable->name }}
@endif
- {{ date('d M Y | h:i a', strtotime($item->start_date)) }}
|
@if($item->toable)
- {{ $item->toable->name }}
@endif
- {{ date('d M Y | h:i a', strtotime($item->end_date)) }}
|
@if ($item->status == 0)
@php
$status = 'Scheduled';
$status_color = 'not_accepted-color-btn';
@endphp
@elseif ($item->status == 1)
@php
$status = 'Done';
$status_color = 'done-color-btn';
@endphp
@elseif ($item->status == 2)
@php
$status = 'Canceled';
$status_color = 'cancel-color-btn';
@endphp
@endif
{{ $status }}
|
{{ $item->buy }} | {{ $item->sell }} | @if($item->type == 2) @php $left_seats = $item->tickets_to_sell - $item->tickets_booked; @endphp {{ $left_seats . " " . __('basic.seats') }} @else {{ __('basic.unlimited') }} @endif | @if ($item->type == 2) @endif @role('Super-admin|Operation-manager|Transport-manager') @endrole |