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