@lang('building') : @can('buildings_view') {{$data->building->name}} @else {{$data->building->name}} @endcan

@lang('reservations')

@if(count($data->reservations) >= 1) @foreach($reservations as $loan) @endforeach
@lang('type') @lang('item') @lang('amount') @lang('date_start') @lang('date_end') @lang('status')
@switch($loan->loanable_type) @case('App\Models\Product') @can('products_viewAny') @lang('product') @else @lang('product') @endcan @break @case('App\Models\Cabel') @can('cabels_viewAny') @lang('cabel') @else @lang('cabel') @endcan @break @endswitch @switch($loan->loanable_type) @case('App\Models\Product') @can('products_view') @if(config('app.barcode_mode') == 'dynamic') {{$loan->loanable->category->name}}.@if(!empty($loan->loanable->subcategory)){{$loan->loanable->subcategory->name}}.@endif{{$loan->loanable->brand->name}}.{{$loan->loanable->model->name}}@if(!empty($loan->loanable->name)).{{$loan->loanable->name}}@endif @endif @if(config('app.barcode_mode') == 'static') {{$loan->loanable->barcode}} @endif @else @if(config('app.barcode_mode') == 'dynamic') {{$loan->loanable->category->name}}.@if(!empty($loan->loanable->subcategory)){{$loan->loanable->subcategory->name}}.@endif{{$loan->loanable->brand->name}}.{{$loan->loanable->model->name}}@if(!empty($loan->loanable->name)).{{$loan->loanable->name}}@endif @endif @if(config('app.barcode_mode') == 'static') {{$loan->loanable->barcode}} @endif @endcan @break @case('App\Models\Cabel') @can('cabels_view') {{$loan->loanable->category->name}}.{{$loan->loanable->name}} @else {{$loan->loanable->category->name}}.{{$loan->loanable->name}} @endcan @break @endswitch {{$loan->amount}} {{date('d.m.Y',strtotime($loan->date_start))}} {{date('d.m.Y',strtotime($loan->date_end))}} @switch($loan->type->name) @case('Reservation - Awaiting') @lang('validation') - @lang('deadline') : @if(!empty($loan->date_deadline)) {{date('d.m.Y H:i:s',strtotime($loan->date_deadline))}} @endif @break @case('Reservation - Set Up') @lang('awaiting') @lang('setup') @break @case('Reservation - Pick Up') @lang('awaiting') @lang('pickup') @break @endswitch
Total : {{count($data->reservations)}}
@else @lang('no_amount') @lang('reservations') @endif