@extends('admin.layouts.main') @section('title', 'Edit Customer') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

@lang('message.edit_customer')

@csrf
@error('full_name')

{{ $message }}

@enderror
@error('mobile_number')

{{ $message }}

@enderror
{{--
@error('email')

{{ $message }}

@enderror
--}} {{--
--}}
@error('image')

{{ $message }}

@enderror
@if (empty($customer->image)) default image @else image @endif
{{--
--}}
@error('country')

{{ $message }}

@enderror
@error('state')

{{ $message }}

@enderror
@error('city')

{{ $message }}

@enderror
@error('zip_code')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror
{{-- customer stats --}} @if ($customer->successful_deals_count > 0 || $customer->bad_deals_count > 0 || $totalDeals > 0)
@lang('message.customer_stats')
@if ($totalDeals > 0)

{{ $totalDeals }}

@endif @if ($customer->successful_deals_count > 0)

{{ $customer->successful_deals_count }} @if ($customer->rank) ( @lang('message.rank') : {{ $customer->rank->getTitleByLang() }}) {!! getRankIcons($customer->rank->icon, $customer->rank->icon_type, $customer->rank->icon_count) !!} @endif

@endif @if ($customer->bad_deals_count)

{{ $customer->bad_deals_count }}

@endif @if ($customer->bad_deals_after_activation)

{{ $customer->bad_deals_after_activation }}

@endif @if ($customer->last_inactivated_at)

{{ date(DISPLAY_DATE, strtotime($customer->last_inactivated_at)) }}

@endif @if ($customer->last_reactivated_at)

{{ date(DISPLAY_DATE, strtotime($customer->last_reactivated_at)) }}

@endif
@endif {{-- ID images --}} @if ($customer->id_front_side && $customer->id_back_side)
@lang('message.ID_proofs')
@if ($customer->id_front_side) @endif @if ($customer->id_back_side) @endif

@endif {{-- bank details card --}}
@lang('message.bank_details')

@if ($customer->account_holder_name != null) {{ $customer->account_holder_name }} @else @lang('message.empty_record') @endif

@if ($customer->account_number != null) {{ $customer->account_number }} @else @lang('message.empty_record') @endif

@if ($customer->bank_name != null) {{ $customer->bank_name }} @else @lang('message.empty_record') @endif

@endsection @section('top_scripts') @endsection