@forelse ($addresses as $a)
  • ! $a->is_active])>
    {{ $a->label }} @if ($a->is_default)Default@endif @unless ($a->is_active)Removed@endunless
    {{ $a->line1 }}, {{ $a->city }}, {{ $a->state }} {{ $a->pincode }}
    {{ collect([$a->contact_name, $a->phone, $a->gstin ? 'GSTIN '.$a->gstin : null])->filter()->join(' · ') }} · {{ $a->is_default ? 'Used for all products without their own address' : $a->products_count.' '.Str::plural('product', $a->products_count) }}
    @if ($a->is_active)
    @unless ($a->is_default)
    @csrf
    @endunless @unless ($a->is_default)
    @csrf @method('DELETE')
    @endunless
    @endif
  • @empty
  • @endforelse

Choose where each product ships from in the product form. When you ship an order you can still pick a different address. If you are GST-registered, an address in another state needs that state's GSTIN.

{{ $editing ? 'Edit '.$editing->label : 'Add a pickup address' }}

@csrf @if ($editing) @method('PUT') @endif
@if ($editing)Cancel@endif