@extends('template.layouts.template-base') @section('title', 'Add Customer - Customer Master') @section('content') Add Customer @csrf @if (isset($draft)) @endif Customer Information Customer Name * @error('name') {{ $message }} @enderror Primary Contact Number Set as default Whatsapp Number Primary WhatsApp Number @error('whatsapp_no') {{ $message }} @enderror Primary Email Address CC Email(s) GST/VAT Number PAN/Tax ID {{-- Client logo @if (isset($draft) && $draft->logo) Click to change logo or preview @else Click to Upload or drag and drop @endif Upload image format should be only PNG, JPG or JPEG. Also, max file size should be 2MB --}} Primary Contact Person Website FAX Number Landline Number {{-- Currency (Default) --}} PIN Code * Unit Name Building number / Street number/name * City * State * Country * Set as default Billing & Shipping address. Billing Address Add more @if (isset($draft) && $draft->addresses && $draft->addresses->where('address_type', 'billing')->count() > 0) @foreach ($draft->addresses->where('address_type', 'billing') as $index => $address) Unit Name * Building number/ Street Number(name) * {{ $address->address_line_1 }} Pin Code * Country * State * City * Set as Default is_default ? 'checked' : '' }}> @endforeach @else {{-- Default empty billing address when no addresses exist --}} Unit Name * Building number/ Street Number(name) * Pin Code * Country * State * City * Set as Default @endif Shipping Address Add more @if (isset($draft) && $draft->addresses && $draft->addresses->where('address_type', 'shipping')->count() > 0) @foreach ($draft->addresses->where('address_type', 'shipping') as $index => $address) Unit Name * Building number/ Street Number(name) * {{ $address->address_line_1 }} Pin Code * Country * State * City * Set as Default is_default ? 'checked' : '' }}> @endforeach @else {{-- Default empty shipping address when no addresses exist --}} Unit Name * Building number/ Street Number(name) * Pin Code * Country * State * City * Set as Default @endif Attachments Add More @if (isset($draft) && $draft->attachments && $draft->attachments->count()) @foreach ($draft->attachments as $i => $file) {{-- Keep attachment id for update --}} Title Upload File @if ($file->attachment) {{-- File name --}} Current: {{ basename($file->attachment) }} {{-- 👁 Eye icon for preview --}} View Current File @endif Remove @endforeach @else {{-- Default empty attachment --}} Title Upload File Remove @endif @php $status = old('status', $draft->status ?? 1); @endphp Status* Active Inactive @error('status') {{ $message }} @enderror Cancel {{-- Save as Draft --}} Save Client ✓ Added Client has been added successfully! × @endsection
Click to change logo or preview
Click to Upload or drag and drop
Client has been added successfully!