@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($pibMaster, ['method' => isset($pibMaster) && $pibMaster->id ? 'put' : 'post', 'files' => 'true']) !!}
PIB Master Details
Enter PIB Master Details
{{-- Department --}}
{!! $errors->first('department_id','') !!}
{{-- Item Code --}}
{!! $errors->first('item_code','') !!}
{{-- Item Name --}}
{!! Form::text( 'item_name', old('item_name', isset($pibMaster->item) ? $pibMaster->item->item_name : ''), [ 'class' => 'form-control', 'id' => 'item_name', 'placeholder' => 'Enter Item Name' ] ) !!} {!! $errors->first('item_name', '') !!}
{{-- Operation --}}
{!! $errors->first('operation','') !!}
{{-- Rate --}}
{!! Form::number('rate', old('rate', $pibMaster->rate ?? ''), [ 'class'=>'form-control', 'step'=>'0.01', 'placeholder'=>'Enter Rate' ]) !!} {!! $errors->first('rate','') !!}
{{-- Status --}}
{{-- Attachment --}}
{!! Form::file('attachment',[ 'class'=>'form-control', 'accept'=>'.pdf,.jpg,.jpeg,.png', !empty($pibMaster->attachment) ? '' : 'required' ]) !!}
@if(!empty($pibMaster->attachment)) @endif
@if ($pibMaster->id) Leave blank if you don't want to change the attachment. @endif {!! $errors->first('attachment','') !!}
{!! Form::textarea('remark', old('remark', $pibMaster->remark ?? ''), [ 'class' => 'form-control', 'rows' => '2', 'placeholder' => 'Enter Remark' ]) !!} {!! $errors->first('remark','') !!}
{!! Form::close() !!} @endsection @push('footer-script') @endpush