Rename supplier home screen to home

This commit is contained in:
Deon George 2022-04-02 09:28:43 +11:00
parent d7b5d9a272
commit 7775105da6
3 changed files with 34 additions and 34 deletions

View File

@ -170,7 +170,7 @@ class AdminController extends Controller
*/ */
public function supplier() public function supplier()
{ {
return view('a.supplier.find'); return view('a.supplier.home');
} }
/** /**

View File

@ -63,7 +63,7 @@
$(document).ready(function() { $(document).ready(function() {
$('#name').select2() $('#name').select2()
.on('change',function(item) { .on('change',function(item) {
window.location.href = '{{ url('a/supplier/addedit') }}/'+item.target.value; window.location.href = '{{ url('a/supplier/details') }}/'+item.target.value;
}); });
}); });
</script> </script>

View File

@ -19,12 +19,12 @@
<label for="name">Supplier Name</label> <label for="name">Supplier Name</label>
<input type="text" class="form-control form-control-border @error('name') is-invalid @enderror" id="name" name="name" placeholder="Supplier Name" value="{{ old('name',$o->name) }}" required> <input type="text" class="form-control form-control-border @error('name') is-invalid @enderror" id="name" name="name" placeholder="Supplier Name" value="{{ old('name',$o->name) }}" required>
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('name') @error('name')
{{ $message }} {{ $message }}
@else @else
Supplier Name required. Supplier Name required.
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
@ -47,12 +47,12 @@
<input type="text" class="form-control form-control-border @error('address1') is-invalid @enderror" id="address1" name="address1" placeholder="Address1" value="{{ old('address1',$o->address1) }}" required> <input type="text" class="form-control form-control-border @error('address1') is-invalid @enderror" id="address1" name="address1" placeholder="Address1" value="{{ old('address1',$o->address1) }}" required>
<input type="text" class="form-control form-control-border" id="address2" name="address2" placeholder="Address2" value="{{ old('address2',$o->address2) }}"> <input type="text" class="form-control form-control-border" id="address2" name="address2" placeholder="Address2" value="{{ old('address2',$o->address2) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('address1') @error('address1')
{{ $message }} {{ $message }}
@else @else
Atleast 1 address line required. Atleast 1 address line required.
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -64,12 +64,12 @@
<label for="city">City</label> <label for="city">City</label>
<input type="text" class="form-control form-control-border @error('city') is-invalid @enderror" id="city" name="city" placeholder="City" value="{{ old('city',$o->city) }}"> <input type="text" class="form-control form-control-border @error('city') is-invalid @enderror" id="city" name="city" placeholder="City" value="{{ old('city',$o->city) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('city') @error('city')
{{ $message }} {{ $message }}
@else @else
City is required. City is required.
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -81,12 +81,12 @@
<label for="state">State</label> <label for="state">State</label>
<input type="text" class="form-control form-control-border @error('state') is-invalid @enderror" id="state" name="state" placeholder="State" value="{{ old('state',$o->state) }}"> <input type="text" class="form-control form-control-border @error('state') is-invalid @enderror" id="state" name="state" placeholder="State" value="{{ old('state',$o->state) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('state') @error('state')
{{ $message }} {{ $message }}
@else @else
State is required. State is required.
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
@ -96,12 +96,12 @@
<label for="postcode">Postal Code</label> <label for="postcode">Postal Code</label>
<input type="text" class="form-control form-control-border @error('postcode') is-invalid @enderror" id="postcode" name="postcode" placeholder="Postal Code" value="{{ old('postcode',$o->postcode) }}"> <input type="text" class="form-control form-control-border @error('postcode') is-invalid @enderror" id="postcode" name="postcode" placeholder="Postal Code" value="{{ old('postcode',$o->postcode) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('postcode') @error('postcode')
{{ $message }} {{ $message }}
@else @else
Postcode is required. Postcode is required.
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -115,10 +115,10 @@
<label for="accounts">Accounts Email</label> <label for="accounts">Accounts Email</label>
<input type="accounts" class="form-control form-control-border @error('supplier_details.accounts') is-invalid @enderror" id="accounts" name="supplier_details[accounts]" placeholder="Accounts Email" value="{{ old('supplier_details.accounts',($o->detail ? $o->detail->accounts : '')) }}"> <input type="accounts" class="form-control form-control-border @error('supplier_details.accounts') is-invalid @enderror" id="accounts" name="supplier_details[accounts]" placeholder="Accounts Email" value="{{ old('supplier_details.accounts',($o->detail ? $o->detail->accounts : '')) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('supplier_details.accounts') @error('supplier_details.accounts')
{{ $message }} {{ $message }}
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -130,10 +130,10 @@
<label for="support">Support Email</label> <label for="support">Support Email</label>
<input type="support" class="form-control form-control-border @error('supplier_details.support') is-invalid @enderror" id="support" name="supplier_details[support]" placeholder="Support Email" value="{{ old('supplier_details.support',($o->detail ? $o->detail->support : '')) }}"> <input type="support" class="form-control form-control-border @error('supplier_details.support') is-invalid @enderror" id="support" name="supplier_details[support]" placeholder="Support Email" value="{{ old('supplier_details.support',($o->detail ? $o->detail->support : '')) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('supplier_details.support') @error('supplier_details.support')
{{ $message }} {{ $message }}
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -145,10 +145,10 @@
<label for="payments">Payment Details</label> <label for="payments">Payment Details</label>
<input type="payments" class="form-control form-control-border @error('supplier_details.payments') is-invalid @enderror" id="payments" name="supplier_details[payments]" placeholder="Payment Details" value="{{ old('supplier_details.payments',($o->detail ? $o->detail->payments : '')) }}"> <input type="payments" class="form-control form-control-border @error('supplier_details.payments') is-invalid @enderror" id="payments" name="supplier_details[payments]" placeholder="Payment Details" value="{{ old('supplier_details.payments',($o->detail ? $o->detail->payments : '')) }}">
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('supplier_details.payments') @error('supplier_details.payments')
{{ $message }} {{ $message }}
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>
@ -163,10 +163,10 @@
<textarea class="form-control @error('supplier_details.notes') is-invalid @enderror" id="notes" name="supplier_details[notes]" placeholder="Notes...">{{ old('supplier_details.notes',($o->detail ? $o->detail->notes : '')) }}</textarea> <textarea class="form-control @error('supplier_details.notes') is-invalid @enderror" id="notes" name="supplier_details[notes]" placeholder="Notes...">{{ old('supplier_details.notes',($o->detail ? $o->detail->notes : '')) }}</textarea>
<span class="input-helper">Notes.</span> <span class="input-helper">Notes.</span>
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
@error('supplier_details.notes') @error('supplier_details.notes')
{{ $message }} {{ $message }}
@enderror @enderror
</span> </span>
</div> </div>
</div> </div>
</div> </div>