@extends('template.layouts.template-base') @section('title', 'Edit Customer - Client Master') @section('content') Edit Customer Details @csrf @method('PUT') Customer Information Customer Name * @error('name') {{ $message }} @enderror Primary Contact Number @error('primary_contact_no') {{ $message }} @enderror {{-- ADD THIS --}} set_as_contact_number == 1 || $client->primary_contact_no == $client->whatsapp_no ? 'checked' : '' }}> 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 Primary Contact Person Website FAX Number Landline Number PIN Code * Unit Name Building number / Street number/name * City * State * Country * set_as_default_bill_ship_address ?? 0) ? 'checked' : '' }}> Set as default Billing & Shipping address Billing Address Add more @php $addrIndex = 0; @endphp @foreach ($client->addresses->where('address_type', 'billing') as $address) Unit Name * Building number/ Street Number(name) * {{ $address->address_line_1 }} Pin Code * Country * State * City * Set as Default is_default ? 'checked' : '' }}> @php $addrIndex++; @endphp @endforeach Shipping Address Add more @foreach ($client->addresses->where('address_type', 'shipping') as $address) Unit Name * Building number/ Street Number(name) * {{ $address->address_line_1 }} Pin Code * Country * State * City * Set as Default is_default ? 'checked' : '' }}> @php $addrIndex++; @endphp @endforeach Attachments Add More @if ($client->attachments && $client->attachments->count()) @foreach ($client->attachments as $i => $file) Title Upload File @if ($file->attachment) Current: {{ basename($file->attachment) }} View Current File @endif Remove @endforeach @else Title Upload File Remove @endif @php $status = old('status', $client->status); @endphp Status * Active Inactive @error('status') {{ $message }} @enderror Cancel Save Changes ✓ Updated Client details has been updated successfully! × @endsection
Client details has been updated successfully!