@extends('layouts.fixed') {{--Edit Poly By Nishat--}} @section('title','WELL-GROUP | CARTON BOOKING') @section('content')

Carton Booking

{{ Form::model($carton,array('method' => 'post', 'route' => ['carton.update', $carton->id])) }}

{{ Form::label('to','To: ') }} {{ Form::text('to',null,['class'=>'form-control','placeholder'=>'To']) }}

{{ Form::label('attn','ATTN: ') }} {{ Form::text('attn',null,['class'=>'form-control','placeholder'=>'Attn']) }}

{{ Form::label('sub','Subject: ') }} {{ Form::text('sub',null,['class'=>'form-control','placeholder'=>'Subject']) }}

{{ Form::label('date','Booking Date: ') }} {{ Form::date('date',null,['class'=>'form-control','placeholder'=>'Date']) }}

{{ Form::label('req_del_date','Required Del. Date: ') }} {{ Form::date('req_del_date',null,['class'=>'form-control','placeholder'=>'']) }}

{{ Form::label('style','Budget Sheet Style: ') }} {{ Form::select('budget_sheet_id',$budget_sheet_style,null,['class'=>'form-control','placeholder'=>'Select Style']) }}
{{ Form::open(['action'=>'Merchandise\PolyBookingController@store','method'=>'POST', 'class'=>'form-horizontal']) }}

@php $num =0; @endphp @foreach($carton->carton_booking_details as $carton_detail) @php $num++; @endphp @endforeach
Style Gmts Size Order Type Length Width Height Type Of Carton GMTS Qty Pcs Per Carton Required Qty. With Percentage(%) Booking Qty. Remarks Action
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('style'.$num,$carton_detail ? $carton_detail->style :null,['id'=>'style'.$num,'class'=>'form-control','placeholder'=>'Style']) }} @if($errors->has('style'.$num)) {{ $errors->first('style'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('gmts_size'.$num,$carton_detail ? $carton_detail->gmts_size :null,['id'=>'gmts_size'.$num,'class'=>'form-control','placeholder'=>'Gmts Size']) }} @if($errors->has('gmts_size'.$num)) {{ $errors->first('gmts_size'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('ord_type'.$num,$carton_detail ? $carton_detail->ord_type :null,['id'=>'ord_type'.$num,'class'=>'form-control','placeholder'=>'Type']) }} @if($errors->has('ord_type'.$num)) {{ $errors->first('ord_type'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('length'.$num,$carton_detail ? $carton_detail->length :null,['id'=>'length'.$num,'class'=>'form-control','placeholder'=>'Length']) }} @if($errors->has('length'.$num)) {{ $errors->first('length'.$num) }} @endif
{{ Form::text('width'.$num,$carton_detail ? $carton_detail->width :null,['id'=>'width'.$num,'class'=>'form-control','placeholder'=>'Width']) }} @if($errors->has('width'.$num)) {{ $errors->first('width'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('height'.$num,$carton_detail ? $carton_detail->height :null,['id'=>'height'.$num,'class'=>'form-control','placeholder'=>'Adhesive']) }} @if($errors->has('height'.$num)) {{ $errors->first('height'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('type_of_carton'.$num,$carton_detail ? $carton_detail->type_of_carton :null,['id'=>'type_of_carton'.$num,'class'=>'form-control','placeholder'=>'Poly Type']) }} @if($errors->has('type_of_carton'.$num)) {{ $errors->first('type_of_carton'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('gmnts_qty'.$num,$carton_detail ? $carton_detail->gmnts_qty :null,['id'=>'gmnts_qty'.$num,'onKeyup'=>'qty_calculate()','class'=>'form-control','placeholder'=>'Gmnts Qty']) }} @if($errors->has('gmnts_qty'.$num)) {{ $errors->first('gmnts_qty'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('pcs_per_carton'.$num,$carton_detail ? $carton_detail->pcs_per_carton :null,['id'=>'pcs_per_carton'.$num,'onKeyup'=>'qty_calculate()','class'=>'form-control','placeholder'=>'Pcs Per Carton']) }} @if($errors->has('pcs_per_carton'.$num)) {{ $errors->first('pcs_per_carton'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('req_qty'.$num,$carton_detail ? $carton_detail->req_qty :null,['id'=>'req_qty'.$num,'class'=>'form-control','placeholder'=>'Req Qty.']) }} @if($errors->has('req_qty'.$num)) {{ $errors->first('req_qty'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('percentage'.$num,$carton_detail ? $carton_detail->percentage :null,['id'=>'percentage'.$num,'onKeyup'=>'req_qty_cal()','class'=>'form-control','placeholder'=>'Percentage']) }} @if($errors->has('percentage'.$num)) {{ $errors->first('percentage'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('book_qty'.$num,$carton_detail ? $carton_detail->book_qty :null,['id'=>'book_qty'.$num,'class'=>'form-control','placeholder'=>'Book Qty.']) }} @if($errors->has('book_qty'.$num)) {{ $errors->first('book_qty'.$num) }} @endif
{{--{{ Form::label('','Unit : ') }}--}} {{ Form::text('remarks'.$num,$carton_detail ? $carton_detail->remarks :null,['id'=>'remarks'.$num,'class'=>'form-control','placeholder'=>'Remarks']) }} @if($errors->has('remarks'.$num)) {{ $errors->first('remarks'.$num) }} @endif
{{ Form::button('',['class'=>'far fa-trash-alt btn btn-danger',"id"=>'remove','onclick'=>'remove()']) }} || {{ Form::button("",['class'=>'btn btn-primary far fa-plus-square','id'=>'add_more','onclick'=>'addRow()']) }}
{{ Form::button('SAVE ',['class'=>'far fa-save fa-3x btn btn-success','type'=>'submit']) }}
{{ Form::close() }}
@endsection