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

Fabric Booking

{{ Form::model($fabrics,array('method' => 'post', 'route' => ['fabric.update', $fabrics->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','Date: ') }} {{ Form::date('date',null,['class'=>'form-control','placeholder'=>'Date']) }}

{{ Form::label('style','Budget Sheet Style: ') }} {{ Form::select('budget_sheet_id',$budget_sheet_styles,null,['class'=>'form-control','placeholder'=>'Select Style']) }}


@php $num= 0; @endphp @foreach($fabrics->fabric_booking_details as $fabric_booking_detail ) @php $num++; @endphp @php $num ++ @endphp @endforeach
Fabric Details Color Gmnts Qty Consumption Required Qty. Add Shrinkage (+/-)% Booking Qty. Remarks Action
{{ Form::text('fabric_name'.$num,$fabric_booking_detail?$fabric_booking_detail->fabric_name:null,['id'=>'fabric_name'.$num,'class'=>'form-control','placeholder'=>'Fabric Details']) }} @if($errors->has('fabric_name')) {{ $errors->first('fabric_name') }} @endif
{{ Form::text('color'.$num,$fabric_booking_detail?$fabric_booking_detail->color:null,['id'=>'color'.$num,'class'=>'form-control','placeholder'=>'Color']) }} @if($errors->has('color')) {{ $errors->first('color') }} @endif
{{ Form::text('gmnts_qty'.$num,$fabric_booking_detail?$fabric_booking_detail->gmnts_qty:null,['id'=>'gmnts_qty'.$num,'class'=>'form-control','onKeyup'=>'qty_calculate()','placeholder'=>'Gmnts Qty']) }} @if($errors->has('gmnts_qty')) {{ $errors->first('gmnts_qty') }} @endif
{{ Form::text('consumption'.$num,$fabric_booking_detail?$fabric_booking_detail->consumption:null,['id'=>'consumption'.$num,'class'=>'form-control','onKeyup'=>'qty_calculate()','placeholder'=>'consumption']) }} @if($errors->has('consumption')) {{ $errors->first('consumption') }} @endif
{{ Form::text('req_qty'.$num,$fabric_booking_detail?$fabric_booking_detail->req_qty:null,['id'=>'req_qty'.$num,'class'=>'form-control','placeholder'=>'Req. Qty','readonly']) }} @if($errors->has('req_qty')) {{ $errors->first('req_qty') }} @endif
{{ Form::text('percentage'.$num,$fabric_booking_detail?$fabric_booking_detail->percentage:null,['id'=>'percentage'.$num,'onKeyup'=>'req_qty_cal()','class'=>'form-control','placeholder'=>'Percentage']) }} @if($errors->has('percentage')) {{ $errors->first('percentage') }} @endif
{{ Form::text('book_qty'.$num,$fabric_booking_detail?$fabric_booking_detail->book_qty:null,['id'=>'book_qty'.$num,'class'=>'form-control','placeholder'=>'Book. Qty']) }} @if($errors->has('book_qty')) {{ $errors->first('book_qty') }} @endif
{{ Form::text('remarks'.$num,$fabric_booking_detail?$fabric_booking_detail->remarks:null,['id'=>'remarks'.$num,'class'=>'form-control','placeholder'=>'Remarks']) }} @if($errors->has('remarks')) {{ $errors->first('remarks') }} @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