Supplier Details @include('adminlte::widget.success_button')


@csrf
active) ? 'checked' : '' }}>
@include('adminlte::widget.form_text',[ 'label'=>'Supplier Name', 'id'=>'name', 'old'=>'name', 'name'=>'name', 'value'=>$o->name ?? '', ])
@error('address1') {{ $message }} @else Atleast 1 address line required. @enderror
@include('adminlte::widget.form_text',[ 'label'=>'City', 'id'=>'city', 'old'=>'city', 'name'=>'city', 'value'=>$o->city ?? '', ])
@include('adminlte::widget.form_text',[ 'label'=>'State', 'id'=>'state', 'old'=>'state', 'name'=>'state', 'value'=>$o->state ?? '', ])
@include('adminlte::widget.form_text',[ 'label'=>'Post Code', 'id'=>'postcode', 'old'=>'postcode', 'name'=>'postcode', 'value'=>$o->postcode ?? '', ])
@include('adminlte::widget.form_text',[ 'label'=>'Accounts Email', 'id'=>'supplier_details.accounts', 'old'=>'supplier_details.accounts', 'name'=>'supplier_details[accounts]', 'value'=>($o->detail ? $o->detail->accounts : ''), ])
@include('adminlte::widget.form_text',[ 'label'=>'Support Email', 'id'=>'supplier_details.support', 'old'=>'supplier_details.support', 'name'=>'supplier_details[support]', 'value'=>($o->detail ? $o->detail->support : ''), ])
@include('adminlte::widget.form_text',[ 'label'=>'Payment Details', 'id'=>'supplier_details.payments', 'old'=>'supplier_details.payments', 'name'=>'supplier_details[payments]', 'value'=>($o->detail ? $o->detail->support : ''), ])
@if($o->api_class())

{{ $o->api_class() }}

@include('adminlte::widget.form_text',[ 'label'=>'API Key', 'id'=>'api_key', 'old'=>'api_key', 'name'=>'api_key', 'value'=>($o->detail ? Arr::get($o->detail->connections,'api_key') : ''), ])
@include('adminlte::widget.form_text',[ 'label'=>'API Secret', 'id'=>'api_secret', 'old'=>'api_secret', 'name'=>'api_secret', 'value'=>($o->detail ? Arr::get($o->detail->connections,'api_secret') : ''), ])
@endif
@error('supplier_details.notes') {{ $message }} @enderror
Cancel @can('wholesaler') @endcan