@extends('template.layouts.template-base') @section('title', 'Edit Customer - Client Master') @section('content')
@csrf @method('PUT')
Customer Information
@error('name')
{{ $message }}
@enderror
@error('primary_contact_no')
{{ $message }}
@enderror
{{-- ADD THIS --}}
set_as_contact_number == 1 || $client->primary_contact_no == $client->whatsapp_no ? 'checked' : '' }}>
@error('whatsapp_no')
{{ $message }}
@enderror
set_as_default_bill_ship_address ?? 0) ? 'checked' : '' }}>
Billing Address
@php $addrIndex = 0; @endphp @foreach ($client->addresses->where('address_type', 'billing') as $address)
is_default ? 'checked' : '' }}>
@php $addrIndex++; @endphp @endforeach
Shipping Address
@foreach ($client->addresses->where('address_type', 'shipping') as $address)
is_default ? 'checked' : '' }}>
@php $addrIndex++; @endphp @endforeach
Attachments
@if ($client->attachments && $client->attachments->count()) @foreach ($client->attachments as $i => $file)
@if ($file->attachment)
Current: {{ basename($file->attachment) }} View Current File
@endif
@endforeach @else
@endif
@php $status = old('status', $client->status); @endphp
@error('status')
{{ $message }}
@enderror
Cancel
@endsection