@extends('layouts.app') @section('content')
@lang('fleet.addPartTransaction')
{!! Form::open(['route' => 'transaction.store','method'=>'post']) !!}
{!! Form::label('vehicle_id',__('fleet.selectVehicle'),['class'=>"form-label"]) !!}
{!! Form::label('cost',__('fleet.cost'),['class'=>"form-label"]) !!} {!! Form::number('cost',null,['class'=>"form-control",'required','readonly']) !!}
{!! Form::label('qty',__('fleet.quantity'),['class'=>"form-label"]) !!} {!! Form::number('qty','1',['class'=>"form-control",'required']) !!}
{!! Form::label('total',__('fleet.total'),['class'=>"form-label"]) !!} {!! Form::number('total',null,['class'=>"form-control",'required','readonly']) !!}
{!! Form::label('serial_no',__('fleet.serialNumber'),['class'=>"form-label"]) !!} {!! Form::text('serial_no',null,['class'=>"form-control"]) !!}
{!! Form::label('part',__('fleet.selectPart'),['class'=>"form-label"]) !!}
{!! Form::label('mileage',__('fleet.mileage'),['class'=>"form-label"]) !!} {!! Form::number('mileage',null,['class'=>"form-control",'required']) !!}
{!! Form::label('Date',__('fleet.date'),['class'=>"form-label"]) !!} {!! Form::text('date',date("Y-m-d"),['id'=>"date",'class'=>"form-control",'required']) !!}
@lang('fleet.todayTransactions')
@foreach($today as $row) @endforeach
@lang('fleet.make') @lang('fleet.model') @lang('fleet.licensePlate') @lang('fleet.partName') @lang('fleet.OEM') @lang('fleet.cost') @lang('fleet.quantity') @lang('fleet.total') @lang('fleet.date') @lang('fleet.mileage')
{{$row->vehicle->make}} {{$row->vehicle->model}} {{$row->vehicle->license_plate}} {{$row->part->name}} {{$row->part->oem}} {{$row->cost}} {{$row->qty}} {{$row->total}} {{$row->date}} {{$row->mileage}}
@endsection @section("script") @endsection