@extends('layouts.layoutMaster')
@section('title', __('Customer Details'))
@section('vendor-style')
@vite(['resources/assets/vendor/libs/sweetalert2/sweetalert2.scss'])
@endsection
@section('vendor-script')
@vite(['resources/assets/vendor/libs/sweetalert2/sweetalert2.js'])
@endsection
@section('content')
@php
$breadcrumbs = [
['name' => __('CRM'), 'url' => route('crm.dashboard.index')],
['name' => __('Customers'), 'url' => route('customers.index')],
['name' => $customer->name, 'url' => '']
];
@endphp
{{ $customer->customer_code }}
{{ __('Total Purchases') }}
{{ __('Lifetime Value') }}
{{ __('Avg Order') }}
{{ __('Available Credit') }}
{{ $customer->blacklist_reason }}
| {{ __('Title') }} | {{ __('Value') }} | {{ __('Stage') }} | {{ __('Status') }} | {{ __('Created') }} |
|---|---|---|---|---|
| {{ $deal->title }} | ${{ number_format($deal->value, 2) }} | {{ $deal->stage->name ?? '-' }} | @if($deal->won_at) {{ __('Won') }} @elseif($deal->lost_at) {{ __('Lost') }} @else {{ __('Open') }} @endif | {{ $deal->created_at->format('d M Y') }} |
{{ __('Total Deal Value') }}: ${{ number_format($stats['total_deal_value'], 2) }} ({{ $stats['won_deals'] }} {{ __('won') }})
{{ __('No deals found') }}
{{ $customer->notes }}
@else{{ __('No notes available') }}
@endif