@extends('layouts.page') @section('title') Add New Vendor @endsection @section('navs') @endsection @section('content') @include ('common.flash') @include ('common.errors')
{!! Form::open(['url' => route('general_vendor.save_vendor'), 'files' => true]) !!} @csrf {!! EasyForm::setErrors($errors) !!} {!! EasyForm::setColSizes(4, 8) !!}
Vendor Details {!! EasyForm::input('full_name', $general_vendor->label('full_name'), old('full_name', ''))!!} {!! EasyForm::select('type', $general_vendor->label('type'), old('type', $type), AppHelper::options('general_vendor_types'))!!} {!! EasyForm::input('shop_name', $type == 'vendor' ? 'Shop Name' : 'Partnership', old('shop_name', ''))!!} {!! EasyForm::input('mobile', $general_vendor->label('mobile'), old('mobile', ''))!!} {!! EasyForm::input('address', $general_vendor->label('address'), old('address', ''))!!} {!! EasyForm::select('state', $general_vendor->label('state'), old('state', ''), AppHelper::options('states'))!!} {!! EasyForm::input('pan_card', $general_vendor->label('pan_card').' (Not Mandatory, Applicable only incase of TDS)', old('pan_card', ''))!!} {!! EasyForm::file('pan_card_copy', $general_vendor->label('pan_card_copy'), old('pan_card_copy', ''))!!}
{!! EasyForm::submit('Create') !!} {!! Form::close() !!}
@endsection