{{-- table loader --}}
{{ __('admin.loading') }}
{{-- table loader --}} {{-- table content --}} @php use App\Models\Company; $companies = Company::active()->approved()->pluck('name', 'id')->toArray(); @endphp @foreach ($units as $unit) @endforeach
{{ __('admin.name') }} {{ __('admin.company') }} {{ __('admin.control') }} {{ __('admin.action') }}
{{ $unit->name }} {{ $unit->company->name }} @if (is_null($unit->is_approved)) @else {{ __('admin.rejected') }} @endif
{{-- table content --}} {{-- no data found div --}} @if ($units->count() == 0)
{{ __('admin.there_are_no_matches_matching') }}
@endif {{-- no data found div --}}
{{-- pagination links div --}} @if ($units->count() > 0 && $units instanceof \Illuminate\Pagination\AbstractPaginator)
{{ $units->links() }}
@endif {{-- pagination links div --}}