@include('Partials.Pages.Search.search_bar')
@include('Partials.Pages.reservation_selector')
@lang('user') | @lang('room') | @lang('deadline') | @lang('date_start') | @lang('date_end') | @lang('action') | @foreach($data as $loan)
---|---|---|---|---|---|
{{$loan->user->username}} | {{$loan->room->building->name}}.{{$loan->room->name}} | @if(!empty($loan->date_deadline)) {{date('d.m.Y H:i:s',strtotime($loan->date_deadline))}} @endif | {{date('d.m.Y',strtotime($loan->date_start))}} | @if(!empty($loan->date_end)) {{date('d.m.Y',strtotime($loan->date_end))}} @else @lang('permanent') @endif |
@can('reservations_validate')
@if(NOW() < $loan->date_deadline)
@lang('validate') @lang('reservation')
@endif
@endcan
@can('reservations_cancel')
@if(NOW() > $loan->date_deadline)
|