@extends('layouts.admin') @section('title', __('admin.customers')) @section('breadcrumb', __('admin.group.store')) @section('content')
@if (request()->filled('per_page'))@endif
{{ __('admin.customer_groups') }}
@forelse ($customers as $customer) @empty @endforelse
{{ __('admin.customer') }} {{ __('admin.phone') }} {{ __('admin.support_unread') }} {{ __('admin.customer_group') }} {{ __('admin.orders') }} {{ __('admin.spent') }} {{ __('admin.locale') }} {{ __('admin.status') }}
{{ $customer->name }}
{{ $customer->email }}
{{ $customer->phone }} @if ((int) $customer->unread_support_count > 0) {{ num($customer->unread_support_count) }} @else — @endif @if ($customer->group) {{ $customer->group->name }} @if ($customer->group->has_price_list)
{{ __('admin.price_list') }} @endif @else — @endif
{{ num($customer->orders_count) }} {{ money($customer->spent ?? 0) }} {{ strtoupper($customer->locale) }} {{ $customer->is_active ? __('admin.active') : __('admin.inactive') }} {{ __('admin.view') }}
@csrf
{{ __('admin.no_customers') }}
@include("admin.partials.pagination", ["paginator" => $customers])
@csrf
@endsection