@extends('layouts.app') @section('content')
@lang('fleet.deliquentReport')
{!! Form::open(['route' => 'reports.delinquent','method'=>'post','class'=>'form-inline']) !!}
{!! Form::label('year', __('fleet.year'), ['class' => 'form-label']) !!} {!! Form::select('year', $years, $year_select,['class'=>'form-control']); !!}
{!! Form::label('month', __('fleet.month'), ['class' => 'form-label']) !!} {!! Form::selectMonth('month',$month_select,['class'=>'form-control']); !!}
{!! Form::label('vehicle', __('fleet.vehicles'), ['class' => 'form-label']) !!}
@if(isset($result))
Report
@foreach($data as $row) @endforeach
@lang('fleet.day') @lang('fleet.date') @lang('fleet.vehicle') @lang('fleet.income') @lang('fleet.expectedIncome') @lang('fleet.difference')
{{$row->day}} {{$row->date}} {{$v[$row->vehicle_id]['make']}}-{{$v[$row->vehicle_id]['model']}}-{{$v[$row->vehicle_id]['license_plate']}} {{$row->Income2}} {{$income_cats[$row->income_cat]}} @if(($row->Income2-$income_cats[$row->income_cat])<0) {{$row->Income2-$income_cats[$row->income_cat]}} @else {{$row->Income2-$income_cats[$row->income_cat]}} @endif
@endif
@endsection @section("script") @endsection