@extends('layouts.template') @section('content')

Tyre Control

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif

Tyre Creation

{!! Form::open(['url' => '/store/tyre-control/tyre-creation/store','id'=>'tyre_creation_form', 'files' => true]) !!}
{!! Form::text('purchase_order_number', null, ['id'=>'purchase_order_number','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('purchase_order_number', '

:message

') !!}
{!! Form::select('make',['' => 'Select Make'] + $page_data['tire_id']->toArray() , null, ['id'=>'tire_id','class' => 'form-control arr']) !!} {!! $errors->first('make', '

:message

') !!}
{!! Form::select('size',['' => 'Select Size'] , null, ['id'=>'size','class' => 'form-control arr']) !!} {!! $errors->first('size', '

:message

') !!}
{!! Form::select('type',['' => 'Select Type'] , null, ['id'=>'type','class' => 'form-control arr']) !!} {!! $errors->first('type', '

:message

') !!}
{!! Form::text('purchased_date', null, ['id'=>'datepicker','class' => 'form-control']) !!} {!! $errors->first('purchased_date', '

:message

') !!}
{!! Form::select('supplier',['' =>'Select Supplier'] + $page_data['supplier']->toArray() ,null,['class' => 'col-md-6 form-control arr']) !!} {!! $errors->first('supplier', '

:message

') !!}
{!! Form::text('quantity', null, ['class' => 'form-control']) !!} {!! $errors->first('quantity', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'tccancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @permission('tyre-control-list')
@foreach($tyrecreation as $item) @endforeach
Purchase Order Make Size Type Purchased Date Supplier Quantity
{{ $item->purchase_order_number }} {{ $item->make }} {{ $item->size }} {{ $item->type }} {{ Helper::convert_to_ddmmyy($item->purchased_date) }} {{ $item->supplier }} {{ $item->quantity }}
{!! $tyrecreation->appends(['search' => Request::get('search')])->render() !!}
@else
Purchase Order Make Size Type Purchased Date Supplier Quantity
You Dont Have Permission To View List Of Tyre Control
@endpermission

Stock In

{!! Form::open(['url' => '/store/tyre-control/tyre-stock-in/store','id'=>'tyre_stock_in_form', 'files' => true]) !!}
{!! Form::select('si_purchase_order_number',['' => 'Select Purchase Order Number'],null, ['id'=>'stock_in_purchase_order_number','class' => 'form-control']) !!} {!! $errors->first('si_purchase_order_number', '

:message

') !!}
{!! Form::text('si_make',null, ['id'=>'stock_in_make','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('si_make', '

:message

') !!}
{!! Form::text('si_size', null, ['id'=>'stock_in_size','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('si_size', '

:message

') !!}
{!! Form::text('si_type', null, ['id'=>'stock_in_type','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('si_type', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'sicancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @permission('tyre-control-list')
@foreach($stockin as $item) @endforeach
Purchase Order Make Size Type Serial Number Other Mark Location Status
{{ $item->purchase_order_number }} {{ $item->make }} {{ $item->size }} {{ $item->type }} {{ $item->serial_number }} {{ $item->other_mark }} {{ $item->location }} {{ $item->status }}
{!! $stockin->appends(['search' => Request::get('search')])->render() !!}
@else
Purchase Order Make Size Type Serial Number Other Mark Location Status
You Dont Have Permission To View List Of Tyre Control
@endpermission

Stock Out

{!! Form::open(['url' => '/store/tyre-control/tyre-stock-out/store','id'=>'tyre_stock_out_form', 'files' => true]) !!}
{!! Form::select('serial_number',['' => 'Select Serial Number'] + $page_data['serial_number']->toArray() , null, ['id'=>'so_serial_number','class' => 'form-control arr']) !!} {!! $errors->first('serial_number', '

:message

') !!}
{!! Form::text('so_make', null, ['id'=>'so_make','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('so_make', '

:message

') !!}
{!! Form::text('so_size', null, ['id'=>'so_size','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('so_size', '

:message

') !!}
{!! Form::text('so_type', null, ['id'=>'so_type','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('so_type', '

:message

') !!}
{!! Form::text('km', null, ['id'=>'kmvalue','class' => 'form-control']) !!} {!! $errors->first('km', '

:message

') !!}
{!! Form::text('date_fitted',null, ['id'=>'datepicker2','class' => 'form-control']) !!} {!! $errors->first('date_fitted', '

:message

') !!}
{!! Form::select('registration_number',['' => 'Select Registration Number'] + $page_data['registration_number']->toArray() , null, ['id'=>'so_registration_number','class' => 'form-control arr']) !!} {!! $errors->first('registration_number', '

:message

') !!}
{!! Form::select('equipment',['' => 'Select Equipment'], null, ['id'=>'so_equipment','class' => 'form-control']) !!} {!! $errors->first('equipment', '

:message

') !!}
{!! Form::text('status','Stock Out', ['class' => 'form-control']) !!} {!! $errors->first('status', '

:message

') !!}
{!! $errors->first('reg_result', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'socancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @permission('tyre-control-list')
@foreach($stockout as $item) @endforeach
Serial Number Make Size Type Km Date Fitted Registration Number Equipment Status
{{ $item->serial_number }} {{ $item->make }} {{ $item->size }} {{ $item->type }} {{ number_format($item->km, 2, '.', ',') }} {{ Helper::convert_to_ddmmyy($item->date_fitted) }} {{ $item->registration_number }} {{ $item->equipment }} {{ $item->status }}
{!! $stockout->appends(['search' => Request::get('search')])->render() !!}
@else
Serial Number Make Size Type Km Date Fitted Registration Number Equipment Status
You Dont Have Permission To View List Of Tyre Control
@endpermission

Retread

{!! Form::open(['url' => '/store/tyre-control/tyre-retrated/store','id'=>'tyre_retrated_form', 'files' => true]) !!}
{!! Form::select('serial_number',['' => 'Select Serial Number'] + $page_data['retread_serial_number']->toArray() , null, ['id'=>'re_serial_number','class' => 'form-control arr']) !!} {!! $errors->first('serial_number', '

:message

') !!}
{!! Form::text('make', null, ['id'=>'re_make','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('make', '

:message

') !!}
{!! Form::text('size', null, ['id'=>'re_size','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('size', '

:message

') !!}
{!! Form::text('type', null, ['id'=>'re_type','class' => 'form-control','readonly'=>'true']) !!} {!! $errors->first('type', '

:message

') !!}
{!! Form::select('supplier',['' =>'Select Supplier'] + $page_data['supplier']->toArray() ,null,['class' => 'col-md-6 form-control arr']) !!} {!! $errors->first('supplier', '

:message

') !!}
{!! Form::text('date_retrated',null, ['id'=>'datepicker3','class' => 'form-control']) !!} {!! $errors->first('date_retrated', '

:message

') !!}
{!! Form::text('incoming_date',null, ['id'=>'datepicker4','class' => 'form-control']) !!} {!! $errors->first('incoming_date', '

:message

') !!}
{!! Form::text('status','Out Retread', ['id'=>'re_status','class' => 'form-control']) !!} {!! $errors->first('status', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'recancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @permission('tyre-control-list')
@foreach($retrated as $item) @permission('tyre-control-edit') @else @endpermission @endforeach
Id Serial Number Make Size Type Supplier Date Retrated Incoming Date Status Action
{{ $item->id }} {{ $item->serial_number }} {{ $item->make }} {{ $item->size }} {{ $item->type }} {{ $item->supplier }} {{ Helper::convert_to_ddmmyy($item->date_retrated) }} {{ Helper::convert_to_ddmmyy($item->incoming_date) }} {{ $item->status }}No Edit Permission
{!! $retrated->appends(['search' => Request::get('search')])->render() !!}
@else
Id Serial Number Make Size Type Supplier Date Retrated Incoming Date Status Action
You Dont Have Permission To View List Of Tyre Control
@endpermission

Disposed

{!! Form::open(['url' => '/store/tyre-control/tyre-disposed/store','id'=>'tyre_disposed_form', 'files' => true]) !!}
{!! Form::select('serial_number',['' => 'Select Serial Number'] + $page_data['disposed_serial_number'] , null, ['id'=>'di_serial_number','class' => 'form-control arr']) !!} {!! $errors->first('serial_number', '

:message

') !!}
{!! Form::select('request_by',['' => 'Select Request By'] + $page_data['name']->toArray() , null, ['class' => 'form-control']) !!} {!! $errors->first('request_by', '

:message

') !!}
{!! Form::select('approve_by',['' => 'Select Approve By'] + $page_data['approve_name']->toArray() , null, ['class' => 'form-control']) !!} {!! $errors->first('approve_by', '

:message

') !!}
{!! Form::text('disposed_date',null, ['id'=>'datepicker5','class' => 'form-control']) !!} {!! $errors->first('disposed_date', '

:message

') !!}
{!! Form::text('remark',null, ['class' => 'form-control']) !!} {!! $errors->first('remark', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'dicancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @permission('tyre-control-list')
@foreach($disposed as $item) @endforeach
Serial Number Request By Approved By Disposed Date Remark
{{ $item->serial_number }} {{ $item->request_by }} {{ $item->approve_by }} {{ Helper::convert_to_ddmmyy($item->disposed_date) }} {{ $item->remark }}
{!! $disposed->appends(['search' => Request::get('search')])->render() !!}
@else
Serial Number Request By Approved By Disposed Date Remark
You Dont Have Permission To View List Of Tyre Control
@endpermission

@permission('tyre-control-list')

History Log

@foreach($data as $d) @endforeach
Serial No PO NR Purchased Date Make Size Type Fitted km Registration Status
{{ $d->serial_number }} {{ $d->purchase_order_number }} {{ Helper::convert_to_ddmmyy($d->purchased_date) }} {{ $d->make }} {{ $d->size }} {{ $d->type }} {{ Helper::convert_to_ddmmyy($d->date_fitted) }} @if($d->km) {{ number_format($d->km, 2, '.', ',') }} @else {{ $d->km }} @endif {{ $d->registration_number }} @if($d->disposed_serial_number) Disposed @elseif($d->incoming_date) In Retrated @elseif($d->date_retrated) Out Retrated @elseif($d->date_fitted) Stock Out @else Stock In @endif
{!! $data->appends(['search' => Request::get('search')])->render() !!}
@else

History Log

Serial No Make Size Type Fitted km Registration Status
You Dont Have Permission To View List Of Tyre Control
@endpermission
@if ($errors->has('reg_result')) @endif @if ($errors->has('si_purchase_order_number')) @endif @endsection