@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }} {{ __('lbl.back') }}

{{ __('lbl.transfer_item_list') }} {{ '#'.$transferDetail['id'] }} ( {{ $transferDetail['sent_date'] }} ) ( {{ 'Created By: '.$transferDetail['username'] }} )

@if($transferDetail['transfar_status'] == 'Reject') {{ $transferDetail['transfar_status'] }} @elseif($transferDetail['transfar_status'] == 'New') {{ $transferDetail['transfar_status'] }} @else {{ $transferDetail['transfar_status'] }} @endif
{{ __('lbl.sending_store_information') }}
{{ $transferDetail['store_from']['contact_name'] }}.
{{ $transferDetail['store_from']['address_line_f'] }}
{{ $transferDetail['store_from']['address_line_s'] }}, {{ $transferDetail['store_from']['city'] }}, {{ $transferDetail['store_from']['country'] }}, {{ $transferDetail['store_from']['zip_postal_code'] }}
Phone: {{ $transferDetail['store_from']['phone'] }}
Email: {{ $transferDetail['store_from']['email'] }}
{{ __('lbl.receiving_store_information') }}
{{ $transferDetail['store_to']['contact_name'] }}.
{{ $transferDetail['store_to']['address_line_f'] }}
{{ $transferDetail['store_to']['address_line_s'] }}, {{ $transferDetail['store_to']['city'] }}, {{ $transferDetail['store_to']['country'] }}, {{ $transferDetail['store_to']['zip_postal_code'] }}
Phone: {{ $transferDetail['store_to']['phone'] }}
Email: {{ $transferDetail['store_to']['email'] }}
{{ Form::open(['url' => route('transfer_item_update'), 'method'=>'POST', 'name' => 'currency', 'id' => 'currency']) }}
@if($transferDetail['transfar_status'] == 'New' || $transferDetail['transfar_status'] == 'Send') @endif @if(!empty($items)) @foreach($items as $item) @if( ($transferDetail['transfar_status'] == 'New' || $transferDetail['transfar_status'] == 'Send') && Helper::checkAccess('product_transfer_edit')) @endif @if($transferDetail['transfar_status'] == 'Part Received') @endif {{ Form::hidden('item_id', $item['id'], ["class"=>"form-control","name"=>"item_id[]"]) }} @endforeach @endif {{ Form::hidden('transfer_id', $transferDetail['id'], ["class"=>"form-control","name"=>"transfer_id[]"]) }}
{{ __('lbl.trabsfer_no') }} {{ __('lbl.establishment_id_from') }} {{ __('lbl.establishment_id_to') }} {{ __('lbl.product_id') }} {{ __('lbl.quantity') }} {{ __('lbl.unit') }}(Conv) {{ __('lbl.adjust_cost') }}{{ __('lbl.action') }}
{{ $item['id'] }} {{ $item['establishment_id_from'] }} {{ $item['establishment_id_to'] }} {{ $item['product_name'] }} @if( ($transferDetail['transfar_status'] == 'New' || $transferDetail['transfar_status'] == 'Send') && Helper::checkAccess('product_transfer_edit')) {{ Form::text('quantity', $item['quantity'], ['min' => 1, 'max' => 9999,"class"=>"form-control mxlen_5 digits","id"=>"quantity","name"=>"quantity[]"]) }} @else {{ $item['quantity'] }} @endif {{ $item['unit_name'].'('.$item['unit'].')' }} {{ Form::checkbox('adjust_cost[]',1,$item['adjust_cost'], array('id'=>'adjust_cost')) }} @if($item['is_receive']) @else @endif
@if($transferDetail['transfar_status'] == 'Finalize') {{ Form::textarea('sender_comment', $transferDetail['sender_comment'], ['cols'=>5, "maxlength"=>"50", "class"=>"form-control","rows"=>5,"placeholder"=>__('lbl.comments'),"id"=>"sender_comment","name"=>"sender_comment"]) }} @else {{$transferDetail['sender_comment']}} @endif

@if( ($transferDetail['transfar_status'] == 'New' || $transferDetail['transfar_status'] == 'Send') && Helper::checkAccess('product_transfer_edit')) {{ Form::button(' '.__('lbl.update'),["type"=>"submit","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn-sm btn btn-primary "]) }} @endif @if($transferDetail['transfar_status'] == 'Send' && Helper::checkAccess('product_transfer_finalize')) @endif @if($transferDetail['transfar_status'] == 'New' && Helper::checkAccess('product_transfer_send')) @endif @if(Helper::checkAccess('product_transfer_download'))
@endif
{{ Form::close() }}
@endsection @section('pagescript') {!! Helper::datatablelib('producttransfer/transferitemlist.js') !!} @stop