Rename supplier home screen to home
This commit is contained in:
parent
d7b5d9a272
commit
7775105da6
@ -170,7 +170,7 @@ class AdminController extends Controller
|
||||
*/
|
||||
public function supplier()
|
||||
{
|
||||
return view('a.supplier.find');
|
||||
return view('a.supplier.home');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@
|
||||
$(document).ready(function() {
|
||||
$('#name').select2()
|
||||
.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>
|
@ -19,12 +19,12 @@
|
||||
<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>
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('name')
|
||||
{{ $message }}
|
||||
@error('name')
|
||||
{{ $message }}
|
||||
@else
|
||||
Supplier Name required.
|
||||
@enderror
|
||||
</span>
|
||||
@enderror
|
||||
</span>
|
||||
</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" id="address2" name="address2" placeholder="Address2" value="{{ old('address2',$o->address2) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('address1')
|
||||
{{ $message }}
|
||||
@error('address1')
|
||||
{{ $message }}
|
||||
@else
|
||||
Atleast 1 address line required.
|
||||
@enderror
|
||||
</span>
|
||||
@enderror
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -64,12 +64,12 @@
|
||||
<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) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('city')
|
||||
{{ $message }}
|
||||
@error('city')
|
||||
{{ $message }}
|
||||
@else
|
||||
City is required.
|
||||
@enderror
|
||||
</span>
|
||||
@enderror
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -81,12 +81,12 @@
|
||||
<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) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('state')
|
||||
{{ $message }}
|
||||
@error('state')
|
||||
{{ $message }}
|
||||
@else
|
||||
State is required.
|
||||
@enderror
|
||||
</span>
|
||||
@enderror
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -96,12 +96,12 @@
|
||||
<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) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('postcode')
|
||||
{{ $message }}
|
||||
@error('postcode')
|
||||
{{ $message }}
|
||||
@else
|
||||
Postcode is required.
|
||||
@enderror
|
||||
</span>
|
||||
@enderror
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -115,10 +115,10 @@
|
||||
<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 : '')) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('supplier_details.accounts')
|
||||
{{ $message }}
|
||||
@error('supplier_details.accounts')
|
||||
{{ $message }}
|
||||
@enderror
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -130,10 +130,10 @@
|
||||
<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 : '')) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('supplier_details.support')
|
||||
{{ $message }}
|
||||
@error('supplier_details.support')
|
||||
{{ $message }}
|
||||
@enderror
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -145,10 +145,10 @@
|
||||
<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 : '')) }}">
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('supplier_details.payments')
|
||||
{{ $message }}
|
||||
@error('supplier_details.payments')
|
||||
{{ $message }}
|
||||
@enderror
|
||||
</span>
|
||||
</span>
|
||||
</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>
|
||||
<span class="input-helper">Notes.</span>
|
||||
<span class="invalid-feedback" role="alert">
|
||||
@error('supplier_details.notes')
|
||||
{{ $message }}
|
||||
@error('supplier_details.notes')
|
||||
{{ $message }}
|
||||
@enderror
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user