@extends('layouts.app')
@section('title', __('purchase.add_purchase'))
@section('content')
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
@endphp
{!! Form::open(['url' => action('SupplierKashfController@storeWasal'), 'method' => 'post', 'id' => 'add_purchase_form', 'files' => true ]) !!}
@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('car_palet', __('sentence.supplier') . ':*') !!}
{!! Form::select('supplier_id', $contact, null, ['class' => 'form-control select2', 'style' => 'width:100%','id'=>'contact_id','required'=>'required']); !!}
{!! Form::label('car_palet', __('sentence.transport') . ':*') !!}
{!! Form::select('move_line', $contact, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id'=>'trasnport_id','required'=>'required']); !!}
{!! Form::label('prescription_Date_id', __('sentence.daysTotalNumberDefualt') . ':*') !!}
{!! Form::text('default_days_read',0, ['class' => 'form-control', 'id' => 'defualt_days','disabled']); !!}
{!! Form::label('prescription_Date_id', __('sentence.statement_type') . ':*') !!}
{!! Form::label('prescription_Date_id', __('sentence.daysTotalNumber') . ':*') !!}
{!! Form::text('days_total_number_show',0, ['class' => 'form-control', 'id' => 'total-days-diff','disabled']); !!}
{!! Form::label('prescription_Date_id', __('sentence.daysDiff') . ':*') !!}
{!! Form::text('days_diff_show',0, ['class' => 'form-control', 'id' => 'days-diff','readonly']); !!}
{!! Form::label('box_count', __('sentence.dayCost') . ':') !!}
{!! Form::text('day_cost_show',0, ['class' => 'form-control', 'id' => 'day-cost','disabled']); !!}
{!! Form::label('car_palet', __('sentence.Customer') . ':*') !!}
{!! Form::select('contact_customer_id', $contactCustomer, null, ['class' => 'form-control select2', 'style' => 'width:100%','id'=>'contact_customer_id','required'=>'required']); !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('qty-weight', __('sentence.amountWeight') . ':') !!}
{!! Form::text('qty_weight',0, ['class' => 'form-control', 'id' => 'qty-weight','required'=>'required']); !!}
{!! Form::label('qty-weight', __('sentence.NetAmountWeightSupplier') . ':') !!}
{!! Form::text('net_amount_weight_supplier_show',0, ['class' => 'form-control', 'id' => 'net-weight-supplier','disabled']); !!}
{!! Form::label('qty-weight', __('sentence.NetAmountWeight') . ':') !!}
{!! Form::text('net_amount_weight_show',0, ['class' => 'form-control', 'id' => 'net-weight','disabled']); !!}
{!! Form::label('kg_price', __('sentence.kgprice') . ':') !!}
{!! Form::text('kg_price',0, ['class' => 'form-control', 'id' => 'kg-price','required'=>'required']); !!}
{!! Form::label('kg_price', __('sentence.kgpriceClient') . ':') !!}
{!! Form::text('kg_price_client',0, ['class' => 'form-control', 'id' => 'kg-price-client','required'=>'required']); !!}
{!! Form::label('net_money', __('sentence.netAmountMoney') . ':') !!}
{!! Form::text('net_money_show',0, ['class' => 'form-control', 'id' => 'net_money','disabled']); !!}
{!! Form::label('net_money', __('sentence.netAmountMoneyClient') . ':') !!}
{!! Form::text('net_money_client_show',0, ['class' => 'form-control', 'id' => 'net_money_client','disabled']); !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('box_amount_total', __('sentence.boxRent') . ':') !!}
{!! Form::text('box_amount_total_show',0, ['class' => 'form-control', 'id' => 'box-amount-total','readonly'=>'readonly']); !!}
{!! Form::label('box_amount_ton', __('sentence.boxRentTon') . ':') !!}
{!! Form::text('box_amount_ton',0, ['class' => 'form-control', 'id' => 'box-amount-ton','readonly'=>'readonly']); !!}
{!! Form::label('box_count', __('sentence.boxCount') . ':') !!}
{!! Form::text('box_count_show',0, ['class' => 'form-control', 'id' => 'box-count','readonly'=>'readonly']); !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('final_amount_total', __('sentence.netAmountOverAllClient') . ':') !!}
{!! Form::text('final_amount_total_client_show',0, ['class' => 'form-control', 'id' => 'final-amount-total-client','disabled']); !!}
{!! Form::label('final_amount_total', __('sentence.netAmountOverAll') . ':') !!}
{!! Form::text('final_amount_total_show',0, ['class' => 'form-control', 'id' => 'final-amount-total','disabled']); !!}
@endcomponent
{!! Form::close() !!}
@include('contact.create', ['quick_add' => true])
@endsection
@section('javascript')
@include('purchase.partials.keyboard_shortcuts')
@endsection