@if (isset($editData))
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['suppliers-update', $editData->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }}
@else
@if (userPermission('suppliers-store'))
{{ Form::open([
'class' => 'form-horizontal',
'files' => true,
'route' => 'suppliers-store',
'method' => 'POST',
'enctype' => 'multipart/form-data',
]) }}
@endif
@endif
@if (isset($editData))
@lang('inventory.edit_supplier')
@else
@lang('inventory.add_supplier')
@endif
@if ($errors->has('company_address'))
{{ $errors->first('company_address') }}
@endif
@php
$tooltip = '';
if (userPermission('suppliers-store') || userPermission('suppliers-edit')) {
$tooltip = '';
} else {
$tooltip = 'You have no permission to add';
}
@endphp
{{ Form::close() }}