@lang('user') :
{{$user->username}}
@lang('room') :
{{$room->building->name}} - {{$room->name}}
@lang('date_start') :
{{date('d.m.Y',strtotime($data->date_start))}}
@lang('date_end') :
{{date('d.m.Y',strtotime($data->date_end))}}
@lang('loans') :
@lang('type') | @lang('item') | @lang('amount') | @foreach($reservations as $reservation)
---|---|---|
@switch($reservation->loanable_type) @case('App\Models\Product') @lang('product') @break @case('App\Models\Cabel') @lang('cabel') @break @endswitch | @switch($reservation->loanable_type) @case('App\Models\Product') @if(config('app.barcode_mode') == 'dynamic') {{$reservation->loanable->category->name}}.@if(!empty($reservation->loanable->subcategory->name)){{$reservation->loanable->subcategory->name}}.@endif{{$reservation->loanable->brand->name}}.{{$reservation->loanable->model->name}}@if(!empty($reservation->loanable->name)).{{$reservation->loanable->name}}@endif @endif @if(config('app.barcode_mode') == 'static') {{$reservation->loanable->barcode}} @endif @break @case('App\Models\Cabel') {{$reservation->loanable->category->name}}.{{$reservation->loanable->name}} @break @endswitch | {{$reservation->amount}} |