@extends('voyager::master') @section('page_title', 'Merchant') @section('page_header')
{{ __('merchant.sub_title') }}
{{ __('datatable.sn') }} | {{ __('merchant.name') }} | {{ __('merchant.type')}} | {{ __('datatable.cr_number') }} | {{ __('datatable.auth_person') }} | {{ __('form.dob') }} | {{ __('voyager::form.mobile_number') }} | {{ __('datatable.registration_date') }} | @if (isset($agents['params']) && $agents['params']->pluck('walletId')->filter()->isNotEmpty()){{ __('datatable.wallet_id') }} | @endif{{ __('datatable.current_balance') }} | {{ __('datatable.status') }} | {{ __('voyager::generic.actions') }} | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $index + 1 }} | {{ checkAndReturnValue($agent, 'company_name') }} | {{ checkAndReturnValue($agent, 'company_sector_type') }} | {{ checkAndReturnValue($agent, 'commercial_reg_number') }} | {{ checkAndReturnValue($agent, 'ar_name') }} | {{ checkAndReturnValue($agent, 'dob') }} | {{ checkAndReturnValue($agent, 'mobile_number') }} | {{ formatTimestamp(checkAndReturnValue($agent, 'registration_date'), 'd-m-Y H:i:s') }} | @if ($agent['walletId'] ?? false){{ checkAndReturnValue($agent, 'walletId') }} | @else{{ checkAndReturnValue($agent, 'wallet_id') }} | @endif{{ format_number(checkAndReturnValue($agent, 'current_balance')) }} | @php $statusKey = strtolower( \App\Enums\Status::getStr(checkAndReturnValue($agent, 'status')), ); @endphp {{ __('datatable.' . $statusKey) }} | @if (hasPermission('read', 'Merchant')) {{ __('voyager::generic.view') }} @endif @if (hasPermission('edit', 'Merchant')) @if (!in_array(strtoupper($statusKey), ['ACTIVE', 'VERIFIED'])) {{ __('voyager::generic.edit') }} @endif @endif |