@extends('layouts.template')
@section('content')
{!! Html::style('assets/plugins/select2/select2_metro.css') !!}
{!! Html::style('assets/plugins/data-tables/DT_bootstrap.css') !!}
{{ Session::get('flash_message') }} Fixed Asset Register
@if(Session::has('flash_message'))
Fixed Asset Register
@foreach($fixedasset as $item)
@if($item->deleted == 1)
#
Transporter
Asset Nr
Equipment
km
Make
Model
Body
Yom
Chasis
Vin No
Fuel
Engine make
Engine Model
Engine No
Ratio
GearBox
GearBox Type
Tare
GVM
Length
Width
Height
Dimension
Picture
Action
@else
{{ $item->transporter }}
{{ $item->registration_number }}
{{ $item->equipment['name'] }}
{{ $item->km }}
{{ $item->make }}
{{ $item->model }}
{{ $item->body }}
{{ $item->yom }}
{{ $item->chasis }}
{{ $item->vin_number }}
{{ $item->fuel }}
{{ $item->engine_make }}
{{ $item->engine_model }}
{{ $item->engine_number }}
{{ $item->ratio['ratio_name'] }}
{{ $item->gear_box }}
{{ $item->gear_box_type }}
{{ $item->tare }}
{{ $item->gvm }}
{{ $item->length }}
{{ $item->width }}
{{ $item->height }}
{{ $item->dimension }}
@if($item->picture !="")@endif
Cancel
{{ $item->transporter }}
{{ $item->registration_number }}
{{ $item->equipment['name'] }}
@if($item->km)
{{ number_format($item->km, 2, '.', ',') }}
@else
{{ $item->km }}
@endif
{{ $item->make }}
{{ $item->model }}
{{ $item->body }}
{{ $item->yom }}
{{ $item->chasis }}
{{ $item->vin_number }}
{{ $item->fuel }}
{{ $item->engine_make }}
{{ $item->engine_model }}
{{ $item->engine_number }}
{{ $item->ratio['ratio_name'] }}
{{ $item->gear_box }}
{{ $item->gear_box_type }}
{{ $item->tare }}
{{ $item->gvm }}
{{ $item->length }}
{{ $item->width }}
{{ $item->height }}
{{ $item->dimension }}
@if($item->picture !="")@endif
@if((Auth::user()->type == 'admin')|| (Auth::user()->type == 'superuser'))
{!! Form::open([
'method'=>'DELETE',
'url' => ['/store/fixed-asset', $item->id],
'style' => 'display:inline'
]) !!}
{!! Form::button('', array(
'type' => 'submit',
'class' => 'btn btn-danger btn-xs',
'title' => 'Delete FixedAsset',
'onclick'=>'return confirm("Confirm Cancel?")'
)) !!}
{!! Form::close() !!}
@endif
@endif
@endforeach
{!! Form::model($item, [
'method' => 'PATCH',
'url' => ['/store/fixed-asset', $item->id],
'class' => 'form-horizontal',
'id' => 'myformEdit',
'files' => true
]) !!}
{!! Form::close() !!}
{!! Form::hidden('running', $item->running) !!}
{!! Form::hidden('spare', $item->spare) !!}
{!! Form::text('registration_number', $item->registration_number, ['class' => 'form-control', 'placeholder' => 'Asset Nr']) !!}
{!! Form::text('km',$item->km, ['id'=>'kmvalue','class' => 'form-control','readonly'=>'true', 'placeholder' => 'Km']) !!}
{!! Form::text('make', $item->make, ['id'=>'tire_id','class' => 'form-control arr', 'placeholder' => 'Make']) !!}
{!! Form::text('model', $item->model, ['class' => 'form-control', 'placeholder' => 'Model']) !!}
{!! Form::text('body', $item->body, ['class' => 'form-control', 'placeholder' => 'Body']) !!}
{!! Form::text('yom', $item->yom, ['class' => 'form-control', 'placeholder' => 'Yom']) !!}
{!! Form::text('chasis', $item->chasis, ['class' => 'form-control', 'placeholder' => 'Chasis']) !!}
{!! Form::text('vin_number', $item->vin_number, ['class' => 'form-control', 'placeholder' => 'Vin Nr']) !!}
{!! Form::text('engine_make', $item->engine_make, ['class' => 'form-control', 'placeholder' => 'Engine Make']) !!}
{!! Form::text('engine_model', $item->engine_model, ['class' => 'form-control', 'placeholder' => 'Engine Model']) !!}
{!! Form::text('engine_number', $item->engine_number, ['class' => 'form-control', 'placeholder' => 'Engine Nr']) !!}
{!! Form::text('gear_box', $item->gear_box, ['class' => 'form-control', 'placeholder' => 'Gear Box']) !!}
{!! Form::text('gear_box_type', $item->gear_box_type, ['class' => 'form-control', 'placeholder' => 'Gear Box Type']) !!}
{!! Form::text('tare', $item->tare, ['class' => 'form-control', 'placeholder' => 'Tare']) !!}
{!! Form::text('gvm', $item->gvm, ['class' => 'form-control', 'placeholder' => 'Gvm']) !!}
{!! Form::text('length', $item->length, ['class' => 'form-control', 'placeholder' => 'Length']) !!}
{!! Form::text('width', $item->width, ['class' => 'form-control', 'placeholder' => 'Width']) !!}
{!! Form::text('height', $item->height, ['class' => 'form-control', 'placeholder' => 'Height']) !!}
{!! Form::text('dimension', $item->dimension, ['class' => 'form-control', 'placeholder' => 'Dimension']) !!}
@if($item->picture !="")@endif