@extends('Layouts.master') @section('content')

@lang('lastDay')

@lang('loaned'):
{{$lastday_lent}}

@lang('reserved'):
{{$lastday_reserved}}

@lang('returned'):
{{$lastday_returned}}

@lang('notes'):
{{$lastday_notes}}

@lang('storage')

@lang('available'):
{{$total_total - ($total_lent + $total_reserved)}}

@lang('loaned'):
{{$total_lent}}

@lang('reserved'):
{{$total_reserved}}

@lang('total'):
{{$total_total}}

@lang('loans')

@if(count($lent) >= 1) @for($i = 1; $i <= count($lent);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$lent[$i-1]->user->username}} @else {{$lent[$i-1]->user->username}} @endcan {{$lent[$i-1]->sum}}
@else

@lang('no_amount')

@endif

@lang('returns')

@if(count($returned) >= 1) @for($i = 1; $i <= count($returned);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$returned[$i-1]->user->username}} @else {{$returned[$i-1]->user->username}} @endcan {{$returned[$i-1]->sum}}
@else

@lang('no_amount')

@endif

@lang('notes')

@if(count($notes) >= 1) @for($i = 1; $i <= count($notes);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$notes[$i-1]->user->username}} @else {{$notes[$i-1]->user->username}} @endcan {{$notes[$i-1]->amount}}
@else

@lang('no_amount')

@endif

@lang('reservations')

@if(count($reserved) >= 1) @for($i = 1; $i <= count($reserved);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$reserved[$i-1]->user->username}} @else {{$reserved[$i-1]->user->username}} @endcan {{$reserved[$i-1]->sum}}
@else

@lang('no_amount')

@endif

@lang('validations')

@if(count($validated) >= 1) @for($i = 1; $i <= count($validated);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$validated[$i-1]->user->username}} @else {{$validated[$i-1]->user->username}} @endcan {{$validated[$i-1]->amount}}
@else

@lang('no_amount')

@endif

@lang('setups')

@if(count($setups) >= 1) @for($i = 1; $i <= count($setups);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$setups[$i-1]->user->username}} @else {{$setups[$i-1]->user->username}} @endcan {{$setups[$i-1]->amount}}
@else

@lang('no_amount')

@endif

@lang('pickups')

@if(count($pickups) >= 1) @for($i = 1; $i <= count($pickups);$i++) @endfor
@lang('place') @lang('user') @lang('amount')
{{$i}} @can('users_view') {{$pickups[$i-1]->user->username}} @else {{$pickups[$i-1]->user->username}} @endcan {{$setups[$i-1]->amount}}
@else

@lang('no_amount')

@endif
@endsection @section('scripting') @endsection