@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',['title'=> __('Customers')]) @endsection @section('content')
{{ $totalCustomers }}

{{ __('Total Customers') }}

{{ $totalActiveCustomers }}

{{ __('Active Customers') }}

{{ $totalExpiredCustomers }}

{{ __('Expired Customers') }}

{{ $totalSuspendedCustomers }}

{{ __('Suspended Customers') }}

{{ __('Customers') }}

@if(count($customers) != 0) @foreach($customers ?? [] as $customer) @endforeach @endif
{{ __('Name') }} {{ __('Email') }} {{ __('Plan') }} {{ __('Orders') }} {{ __('Expire Date') }} {{ __('Status') }} {{ __('Created At') }} {{ __('Action') }}
{{ $customer->name }} {{ Str::limit($customer->email ?? '',50) }} {{ $customer->subscription->title ?? '' }} {{ number_format($customer->orders_count) }} {{ $customer->will_expire }} {{ $customer->status == 1 ? 'Active' : 'Suspended' }} {{ $customer->created_at->format('d F y') }}
@if(count($customers) == 0)
{{ __('!Opps no records found') }}
@endif
@endsection