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

Parts Control

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

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

@endif

Parts Control :-       

{{-- --}}
@permission('item-creation-create') @endpermission

Add Item Creation    Alternative Part

{!! Form::open(['url' => '/store/part-control/item-creation/store','id'=>'itemform', 'files' => true]) !!}
{!! Form::text('item_part_id', $partId, ['class' => 'form-control','id'=>'part_id','readonly'=>'true']) !!} {!! $errors->first('item_part_id', '

:message

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

:message

') !!}
{!! Form::select('item_part_name2',$page_data['items'], null, ['class' => 'form-control','placeholder'=>'Select Part','id'=>'part_name2']) !!} {!! $errors->first('item_part_name2', '

:message

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

:message

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

:message

') !!}
{!! Form::select('item_category',['' => 'Select Category'] + $page_data['category']->toArray(),null, ['id'=>'item_category','class' => 'form-control']) !!} {!! $errors->first('item_category', '

:message

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

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!} {!! Form::button('Cancel', ['id'=>'itemcancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@permission('item-creation-list') @foreach($itemcreation as $item) @endforeach @else @endpermission
Part ID Part Name Part Make Part Number Category Alert Qty Alternative Product Image
{{ $item->part_id }} {{ $item->part_name }} {{ $item->part_make ? $item->part_make : 'N/A' }} {{ $item->part_number }} {{ $item->category }} {{ $item->quantity }} {{ $item->alternativeItem->count() }}
You Dont Have Permission To View List Of Item Creation
@permission('stock-in-create') @endpermission

Add Stock In  
Purchase Order Number {!! Form::select('si_purchase_order_number',['' => 'Select Purchase Order Number'],null, ['id'=>'si_purchase_order_number','class' => 'form-control']) !!} {!! $errors->first('si_purchase_order_number', '

:message

') !!}

{!! Form::open(['url' => '/store/part-control/stock-in/store','id'=>'stockinform', 'files' => true]) !!}
Part Name Part Make Part Number Quantity Equipment Location Make Model Remark
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary','id'=>'stock_btn']) !!} {!! Form::button('Cancel', ['id'=>'stockincancel','class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@permission('stock-in-list') @foreach($stockin as $sitem) @endforeach @else @endpermission
PO Nr Part Name Part Make Part Number Qty Location Equipment Make Model Remarks Product Image
{{ $sitem->purchase_order_number }} {{ $sitem->part_name }} {{ $sitem->part_make ? $sitem->part_make : 'N/A' }} {{ $sitem->part_number }} {{ $sitem->quantity }} {{ $sitem->location }} {{ $sitem->equipment }} {{ $sitem->make }} {{ $sitem->model }} {{ $sitem->remark }}
@if(count($sitem->part) > 0) @if($sitem->part[0]->image !="")@endif @endif
You Dont Have Permission To View List Of Stock In Items
@permission('stock-out-create') @endpermission

Add Stock Out

{!! Form::open(['url' => '/store/part-control/stock-out/store','id'=>'stockoutform', 'files' => true]) !!}
{!! Form::select('so_part_name',['' => 'Select Part Name'],null, ['id'=>'so_part_name','class' => 'form-control so_validate']) !!} {!! $errors->first('so_part_name', '

:message

') !!}

{!! Form::select('so_part_make',['' => 'Select Part Name'],null, ['id'=>'so_part_make','class' => 'form-control so_validate']) !!} {!! $errors->first('so_part_make', '

:message

') !!}

{!! Form::select('so_part_number',['' => 'Select Part Number'],null, ['id'=>'so_part_number','class' => 'form-control so_validate']) !!} {!! $errors->first('so_part_number', '

:message

') !!}

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

:message

') !!}

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

:message

') !!}

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

:message

') !!}

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

:message

') !!}
{!! Form::select('so_job_number',['' => 'Select Job Nr'] + $page_data['job_number']->toArray() , null, ['id'=>'so_job_number','class' => 'form-control so_validate']) !!} {!! $errors->first('so_job_number', '

:message

') !!}

{{-- {!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!}--}} {!! Form::button('Cancel', ['id'=>'stockoutcancel','class' => 'btn btn-primary']) !!}
Part Name Part Make Part No Qty Action
{!! Form::close() !!}
@permission('stock-out-list') @foreach($stockout as $oitem) @endforeach @else @endpermission
Part Name Part Make Part Number Equipment Make Model Qty Job Number Product Image
{{ $oitem->part_name }} {{ $oitem->part_make ? $oitem->part_make : 'N/A' }} {{ $oitem->part_number }} {{ $oitem->equipment }} {{ $oitem->make }} {{ $oitem->model }} {{ $oitem->quantity }} {{ $oitem->job_number }}
@if(count($oitem->part) > 0) @if($oitem->part[0]->image !="")@endif @endif
You Dont Have Permission To View List Of Stock Out Items
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
Part IDPart NamePart MakePart NrQty
--}} {{--
--}}
@permission('purchase-order-create') @endpermission

Add Purchase order   Stock    Job

{!! Form::open(['url' => 'store/part-control/purchase-order/store','id'=>'purchaseorderform','files' => true]) !!}
{!! Form::text('purchase_order_number', null, ['class' => 'form-control test_validate','id'=>'po_order_no']) !!} {!! $errors->first('purchase_order_number', '

:message

') !!}
{!! Form::select('po_part_name',['' => 'Select Part Name'],null, ['id'=>'po_part_name','class' => 'form-control test_validate']) !!} {!! $errors->first('po_part_name', '

:message

') !!}
{!! Form::select('po_part_make',['' => 'Select Part Make'],null, ['id'=>'po_part_make','class' => 'form-control test_validate']) !!} {!! $errors->first('po_part_make', '

:message

') !!}
{!! Form::select('po_part_number',['' => 'Select Part Number'],null, ['id'=>'po_part_number','class' => 'form-control test_validate']) !!} {!! $errors->first('po_part_number', '

:message

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

:message

') !!}
{!! Form::select('po_equipment',['' => 'Select Equipment'] + $page_data['equipment']->toArray() , null, ['id'=>'po_equipment_id','class' => 'form-control test_validate']) !!} {!! $errors->first('po_equipment', '

:message

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

:message

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

:message

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

:message

') !!}
{!! Form::select('apply',['' => 'Select Applier'] + $page_data['name']->toArray() , null, ['class' => 'form-control test_validate','id'=>'applier']) !!} {!! $errors->first('apply', '

:message

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

:message

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

:message

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

:message

') !!}
{{-- {!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!}--}} {!! Form::button('Cancel', ['id'=>'purchaseordercancel','class' => 'btn btn-primary']) !!}
Part Name Part Make Part No Qty Action
{!! Form::close() !!}
@permission('purchase-order-list') @foreach($purchaseorder as $poitem) @endforeach @else @endpermission
PO Nr Part Name Part Make Part Number Supplier Qty Price Equipment Make Model Job Nr Applier Approver Print
{{ $poitem->purchase_order_number }} {{ $poitem->part_name }} {{ $poitem->part_make ? $poitem->part_make : 'N/A' }} {{ $poitem->part_number }} {{ $poitem->supplier }} {{ $poitem->quantity }} @if($poitem->price) {{ number_format($poitem->price, 2, '.', ',') }} @else {{ $poitem->price }} @endif {{ $poitem->equipment }} {{ $poitem->make }} {{ $poitem->model }} {{ $poitem->job_number }} {{ $poitem->apply }} {{ $poitem->approve }}
You Dont Have Permission To View List Of Purchase Orders

Current Status Stock Report

@foreach($data as $d) @endforeach
Part Name Part ID Equipment Make Model Category Part Number Location Stock Qty Alert Qty Price Date Update Product Image
{{ $d->part_name }} {{ $d->part_id }} {{ $d->equipment }} {{ $d->make }} {{ $d->model }} {{ $d->category }} {{ $d->part_number }} {{ $d->location }} {{ $d->stock_in_quantity - $d->stock_out_quantity }} {{ $d->quantity }} @if($d->price) {{ number_format($d->price, 2, '.', ',') }} @else {{ $d->price }} @endif {{ $d->updated_at ? Helper::convert_to_ddmmyyhis($d->updated_at) : Helper::convert_to_ddmmyyhis($d->created_at) }}
@endsection