@extends('voyager::master') @section('page_title', 'Merchant') @section('page_header') @stop @section('content') @include('_partials.alerts')
@if (isset($agents) && $agents->pluck('registration_date')->filter()->isNotEmpty()) @endif @if (isset($agents)) @if (count($agents) > 0) @foreach ($agents as $index => $agent) @if (isset($agents) && $agents->pluck('registration_date')->filter()->isNotEmpty()) @endif @endforeach @else @endif @else @endif
{{ __('datatable.sn') }} {{ __('merchant.name') }} {{ __('datatable.cr_number') }} {{ __('datatable.auth_person') }} {{ __('form.mobile_number') }}{{ __('datatable.registration_date') }}{{ __('datatable.status') }} {{ __('voyager::generic.actions') }}
{{ ++$index }} {{ $agent->companyInfo?->name ?? '' }} {{ checkAndReturnValue($agent->documents?->where('doc_type', 'company')->first(), 'doc_number') }} {{ checkAndReturnValue($agent, 'ar_name') }}
{{ checkAndReturnValue($agent, 'en_name') }}
{{ checkAndReturnValue($agent, 'mobile_number') }} {{ formatTimestamp(checkAndReturnValue($agent, 'establish_date'), 'd-m-Y H:i:s') }} @if ($agent->status == 0) {{ __('merchant.draft.pending_approval') }} @elseif($agent->status == 5) {{ __('merchant.draft.draft') }} @endif @if (hasPermission('read', 'Merchant')) @endif @if (hasPermission('edit', 'Merchant')) @endif
{{ __('customer.no_records_found') }}
{{ __('customer.error_message') }}
{{-- {{ $agents->links() }} --}}
@include('paynow.agents.fields') @stop @section('javascript') @stop