@extends('layouts.app') @section('title', 'Booking') @section('header') @vite(['resources/sass/bootstrap-table.scss', 'resources/js/bootstrap-table.js']) @endsection @section('content')
Date | Start (Zulu) | End (Zulu) | Position | FIR | User |
---|---|---|---|---|---|
@can('update', $booking) {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} @else {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanDate(true) }} @if(Auth::user()->id == $booking->user_id || $user->isModeratorOrAbove()) @if($booking->source == "DISCORD") @else @endif @endif @endcan | {{ \Carbon\Carbon::create($booking->time_start)->toEuropeanTime() }} | {{ \Carbon\Carbon::create($booking->time_end)->toEuropeanTime() }} | {{ $booking->position->callsign }} ({{ $booking->position->name }}) @if($booking->training) Training @elseif($booking->event) Event @elseif($booking->exam) Exam @endif | {{ $booking->position->fir }} | @can('view', $booking->user) {{ $booking->user->name }} ({{ $booking->user_id }}) @else {{ $booking->user->name }} ({{ $booking->user_id }}) @endcan |