@extends('layouts.app') @section('title',($customer->exists?'Edit':'Add').' Customer | BASCORE') @section('content')

{{ $customer->exists ? 'Edit Customer' : 'Add Customer' }}

Keep customer billing and contact details accurate.
@csrf @if($customer->exists) @method('put') @endif
@foreach([ ['customer_name','Customer name',true],['company_name','Company name',false],['email','Email',false],['phone','Phone',false],['trn','TRN / VAT number',false],['contact_person','Contact person',false], ] as [$name,$label,$required])
@error($name)
{{ $message }}
@enderror
@endforeach
Cancel
@endsection