@extends('layouts.admin') @section('title', $customer->name) @section('page_title', __('Customer') . ' - ' . $customer->name) @section('content')
{{ $customer->name }}

{{ $customer->code }}


{{ __('Phone') }}: {{ $customer->phone ?? '-' }}

{{ __('Type') }}: {{ __($customer->type) }}

{{ __('Zone') }}: {{ $customer->zone?->name ?? '-' }}

{{ __('Credit Limit') }}: {{ number_format((float) $customer->credit_limit, 2) }}

{{ __('Balance') }}: {{ number_format((float) $customer->balance, 2) }}

{{ __('Status') }}: {!! $customer->status_badge !!}

{{ __('Address') }}: {{ $customer->address ?? '-' }}

كشف حساب
@if($customer->location_lat && $customer->location_lng)
الموقع
@endif
حركة الحساب الأخيرة
@forelse($statement as $row) @empty @endforelse
التاريخ النوع المرجع مدين دائن الرصيد
{{ \Carbon\Carbon::parse($row['date'])->format('d/m/Y') }} {{ $row['type'] === 'invoice' ? 'فاتورة' : 'دفعة' }} {{ $row['ref'] }} {{ number_format($row['debit'], 2) }} {{ number_format($row['credit'], 2) }} {{ number_format($row['balance'], 2) }}
{{ __('No data available') }}
@endsection @if($customer->location_lat && $customer->location_lng) @push('styles') @endpush @push('scripts') @endpush @endif