2024-08-18 03:58:18 +00:00
|
|
|
<!-- $pdo=Supplier::class -->
|
2021-12-24 01:14:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<h3>Supplier Details <x-leenooks::button.success class="float-right"/></h3>
|
2021-12-24 01:14:01 +00:00
|
|
|
<hr>
|
|
|
|
|
2024-08-18 03:58:18 +00:00
|
|
|
<form method="POST">
|
2021-12-24 01:14:01 +00:00
|
|
|
@csrf
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="row">
|
2022-04-02 07:06:34 +00:00
|
|
|
<!-- Supplier Active -->
|
2022-08-05 14:22:22 +00:00
|
|
|
<div class="col-12 col-sm-3">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.toggle name="active" label="Active" :value="$spo->active"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
2022-08-05 14:22:22 +00:00
|
|
|
|
|
|
|
<!-- Supplier Name -->
|
|
|
|
<div class="col-12 col-sm-9">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="name" icon="fa-tag" label="Supplier Name" :value="$spo->name ?? ''"/>
|
2022-08-05 14:22:22 +00:00
|
|
|
</div>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Address Lines -->
|
|
|
|
<div class="col-12">
|
2022-08-05 14:22:22 +00:00
|
|
|
<div class="form-group">
|
2021-12-24 01:14:01 +00:00
|
|
|
<label for="address1">Address Lines</label>
|
2024-08-18 03:58:18 +00:00
|
|
|
<input type="text" style="border-bottom-left-radius:0;border-bottom-right-radius:0;" class="form-control @error('address1') is-invalid @enderror" id="address1" name="address1" value="{{ old('address1',$spo->address1) }}">
|
|
|
|
<input type="text" style="border-top-left-radius:0;border-top-right-radius:0;border-top:0;" class="form-control" id="address2" name="address2" value="{{ old('address2',$spo->address2) }}">
|
2021-12-24 01:14:01 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
2022-04-01 22:28:43 +00:00
|
|
|
@error('address1')
|
|
|
|
{{ $message }}
|
2021-12-24 01:14:01 +00:00
|
|
|
@else
|
|
|
|
Atleast 1 address line required.
|
2022-04-01 22:28:43 +00:00
|
|
|
@enderror
|
|
|
|
</span>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- City -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="city" label="City" :value="$spo->city ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- State -->
|
2022-08-05 14:22:22 +00:00
|
|
|
<div class="col-12 col-sm-9">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="state" label="State" :value="$spo->state ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Postal Code -->
|
2022-08-05 14:22:22 +00:00
|
|
|
<div class="col-12 col-sm-3">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="postcode" label="Post Code" :value="$spo->postcode ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="offset-1 col-4">
|
|
|
|
<div class="row">
|
|
|
|
<!-- Accounts Email -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.email name="supplier_details[accounts]" label="Accounts Email" old="supplier_details.accounts" :value="$spo?->detail->accounts ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Support Email -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.email name="supplier_details[support]" label="Support Email" old="supplier_details.support" :value="$spo?->detail->support ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Payment Details -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.email name="supplier_details[payments]" label="Payment Details" old="supplier_details.payments" :value="$spo?->detail->payments ?? ''"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-05 14:22:22 +00:00
|
|
|
|
2024-08-18 03:58:18 +00:00
|
|
|
@if($spo->api_class())
|
2022-08-05 14:22:22 +00:00
|
|
|
<hr>
|
2024-08-18 03:58:18 +00:00
|
|
|
<p class="h6">
|
|
|
|
<i class="fa-fw fas fa-sitemap"></i> <strong>{{ $spo->api_class() }}</strong>
|
|
|
|
</p>
|
2022-08-05 14:22:22 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- API Details -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="api_key" label="API Key" :value="($spo->detail ? Arr::get($spo->detail->connections,'api_key') : '')"/>
|
2022-08-05 14:22:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- API Details -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.text name="api_secret" label="API Secret" :value="($spo->detail ? Arr::get($spo->detail->connections,'api_secret') : '')"/>
|
2022-08-05 14:22:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Notes -->
|
|
|
|
<div class="col-12">
|
2024-08-18 03:58:18 +00:00
|
|
|
<x-leenooks::form.textarea name="supplier_details[notes]" label="Notes" :value="($spo->detail ? $spo->detail->notes : '')"/>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Buttons -->
|
2024-08-18 03:58:18 +00:00
|
|
|
<div class="col">
|
|
|
|
<x-leenooks::button.cancel/>
|
|
|
|
<x-leenooks::button.submit class="float-right">@if($spo?->exists)Update @else Add @endif</x-leenooks::button.submit>
|
2021-12-24 01:14:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|