@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',[ 'title'=> __('Customers'), 'buttons'=>[ [ 'name'=>__('Back'), 'url'=>route('admin.customer.index'), ] ]]) @endsection @section('content')
{{ $customer->orders_count }} {{ __('Orders') }}
{{ $customer->smstransaction_count }} {{ __('Transactions') }}
{{ $customer->status == 1 ? 'Active' : 'Suspended' }} {{ __('Status') }}
{{ $customer->name }}
{{ __('Join Date: ') }} {{ $customer->created_at->format('d F Y') }}
{{ __('Will Expire: ') }} {{ $customer->will_expire }}
{{ __('Bio') }}

{{ __('Name : ') }} {{ $customer->name }}

{{ __('Email : ') }} {{ $customer->email }}

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

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

{{ __('Other Info') }}

{{ __('Plan Name:') }} {{ $customer->subscription->title ?? '' }}

{{ __('Plan Expire Date:') }} {{ $customer->will_expire ?? '' }}

{{ __('Total Spended:') }} {{ $customer->orders_sum_amount != null ? amount_format($customer->orders_sum_amount ?? '') : 0 }}

{{ __('Total Devices:') }} {{ $customer->device_count ?? '' }}

{{ __('Total Messages:') }} {{ $customer->smstransaction_count ?? '' }}

{{ __('Total Contacts:') }} {{ $customer->contact_count ?? '' }}

{{ __('Orders') }}

@if(count($orders) != 0) @foreach($orders ?? [] as $order) @endforeach @endif
{{ __('Order No') }} {{ __('Plan Name') }} {{ __('Payment Mode') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Created At') }} {{ __('View') }}
{{ $order->invoice_no }} {{ Str::limit($order->plan->title ?? '',50) }} {{ $order->gateway->name ?? '' }} {{ number_format($order->amount,2) }} {{ $order->status == 2 ? 'pending' : ($order->status == 1 ? 'approved' : 'declined') }} {{ $order->created_at->format('d F y') }} {{ __('View') }}
@if(count($orders) == 0)
{{ __('!Opps no orders found') }}
@endif
@endsection