@extends('layouts.app') @section('content')

Retailer List

@can('add-retailer') @endcan
Selected
{{-- --}}
@if (auth()->user()->hasRole('admin')) @endif @if (auth()->user()->hasRole('admin')) @else {{-- --}} @endif @if (!empty($retailers) && $retailers->count()) @foreach ($retailers as $key => $retailer) @if (auth()->user()->hasRole('admin')) @endif @if (auth()->user()->hasRole('admin')) @else @if ($retailer->retailers->where('dealer_id', auth()->user()->id)->first()->is_accepted != 1) @else @endif @endif {{-- --}} @endforeach @else @endif
IdUser Company PhoneDocuments Status ActionTotal Credit Avl Credit Credit LimitPaid Type
{{ $retailer->application_no }} @if ($retailer->image == null)
@else
@endif
{{ $retailer->first_name . ' ' . $retailer->last_name }} {{ $retailer->email ?? '-' }}
{{ $retailer->company_name ?? '-' }}
{{ $retailer->phone ?? '-' }}
View @if ($retailer->status === null) id }} data-status="1" data-action="{{ route('change-status') }}"> Verify @elseif ($retailer->status == 0) id }} data-status="1" data-action="{{ route('change-status') }}">Inactive @else id }} data-status="0" data-action="{{ route('change-status') }}">Active @endif {{ $retailer->retailers->where('dealer_id', auth()->user()->id)->first()->total_credit_limit ?? 'NA' }} {{ $retailer->retailers->where('dealer_id', auth()->user()->id)->first()->available_credit_limit ?? 'NA' }} Credit Request
No matching records found
{{ $retailers->links() }}
@endsection @push('script') @endpush