@extends('admin::layouts.master') @section('title', __('admin/common.customer')) @section('content')
@hook('admin.customer.list.filter')
@if ($type != 'trashed') @else @endif
@if ($customers->total())
@hook('admin.customer.list.column') @foreach ($customers as $customer) @hook('admin.customer.list.column_value') @endforeach
{{ __('common.id') }} {{ __('customer.email') }} {{ __('customer.name') }} {{ __('customer.from') }} {{ __('customer.customer_group') }} {{ __('common.status') }} {{ __('common.created_at') }}{{ __('common.action') }}
{{ $customer['id'] }} {{ $customer['email'] }}
{{ $customer['name'] }}
{{ $customer['from'] }} {{ $customer->customerGroup->description->name ?? '' }} {{ $customer['status'] ? __('common.enable') : __('common.disable') }} {{ $customer['created_at'] }} @if ($type != 'trashed') {{ __('common.edit') }} @hook('admin.customer.list.action') @else {{ __('common.restore') }} @hook('admin.customer.trashed.action') @endif
{{ $customers->withQueryString()->links('admin::vendor/pagination/bootstrap-4') }} @else @endif
{{ __('common.save') }} {{ __('common.cancel') }}
@hook('admin.customer.list.content.footer') @endsection @push('footer') @endpush