@extends('layouts/pos_layout') @section('title', '|'.$moduleTitle) @section('style') @endsection @section('content')
{{ $moduleTitle }}
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'purchaseForm')) !!} {!! Form::hidden('edit_data_id', $data->id, ['class' => 'form-control input-sm', 'id' => 'edit_data_id']) !!}
{!! Form::label('billNo', 'Bill No:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('billNo', $value = $data->transferBillNo, ['class' => 'form-control', 'id' => 'purchase_no', 'type' => 'text','readonly','autocomplete'=>'off']) !!}

{!! Form::label('transferFrom', 'Transfer From:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('transferFrom', $branches,$data->brancheId, ['class' => 'form-control', 'id' => 'transferFrom','placeholder' => 'Select Branch','required'=>'required']) !!}

{!! Form::label('transferTo', 'Transfer To:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('transferTo', $requisitionBranches,$data->transferTo, ['class' => 'form-control', 'id' => 'branch_id','placeholder' => 'Select Branch','required'=>'required']) !!}

{!! Form::label('transferDate', 'Transfer Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('transferDate', $data->transferDate, ['class' => 'form-control','readonly']) !!}

{!! Form::label('total_amount', 'Total Amount:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('total_amount', $data->totalTransterAmount, ['class' => 'form-control numeric', 'id' => 'total_amount', 'readonly','min'=>'0']) !!}

{!! Form::label('total_quantity', 'Total Quantity:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::number('total_quantity', $data->totlaTransferQuantity, ['class' => 'form-control numeric', 'id' => 'total_quantity', 'readonly','min'=>'0']) !!}

{!! Form::label('total_stock', 'Stock:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('total_stock', null, ['class' => 'form-control numeric', 'id' => 'total_stock', 'readonly','min'=>'0']) !!}

{!! Form::label('group_id', 'Group:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('category_id', 'Category:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('sub_category_id', 'Subcatagory:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('model_id', 'Model:', ['class' => 'control-label col-sm-12']) !!}
@php $t_qty = 0; $t_price = 0; @endphp @foreach($data->transfer_details as $details) @php if($isBarcodeStatus == 'true'){ $transferQuantity = App\Models\pos\Transaction\PosProductTransferDetails::where('transferProductId',$details->transferProductId)->where('transferId',$details->transferId)->whereNull('deleted_at')->sum('transferQuantity'); }else{ $transferQuantity = $details->transferQuantity; } @endphp @php $t_qty += $transferQuantity; $t_price += $details->costPrice; @endphp @endforeach
Product Barcode PID/IMEI Number Qty Price Total Remove
Total Quantity {{$t_qty}} Total Amount {{$t_price}}
{!! Form::label('submit', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}