@extends('layouts.admin') @section('title', 'Edit Customer - ' . $customer->name) @section('page-title', 'Edit Customer') @section('breadcrumbs') Customers chevron_right {{ $customer->name }} chevron_right Edit @endsection @section('content')
@csrf @method('PUT')

Basic Details

@if($customer->image && file_exists(storage_path('app/public/' . $customer->image))) {{ $customer->name }} @else person @endif

JPG or PNG, max 5MB

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('website')

{{ $message }}

@enderror

Billing Address

@php // Parse address into components $addressParts = $customer->address ? explode(',', $customer->address) : []; $billingAddressLine1 = old('billing_address_line1', $addressParts[0] ?? ''); $billingAddressLine2 = old('billing_address_line2', isset($addressParts[1]) ? trim($addressParts[1]) : ''); @endphp

Shipping Address

Cancel
@endsection