@extends('layouts.admin') @push('title', get_phrase('Application')) @push('meta')@endpush @push('css')@endpush @section('content') @php $pendings = App\Models\Application::where('status', 0)->paginate(10); $approved = App\Models\Application::where('status', 1)->paginate(10); @endphp

{{ get_phrase('Instructor Applicationss') }}

@if (count($pendings) > 0)

{{ get_phrase('Showing') . ' ' . count($pendings) . ' ' . get_phrase('of') . ' ' . $pendings->total() . ' ' . get_phrase('data') }}

@foreach ($pendings as $key => $pending) @endforeach
# {{ get_phrase('Name') }} {{ get_phrase('Document') }} {{ get_phrase('Details') }} {{ get_phrase('Status') }} {{ get_phrase('Action') }}
{{ ++$key }} {{ get_user_info($pending->user_id)->name }} {{ get_phrase('Application details') }} @if ($pending->status == 0)
{{ get_phrase('Pending') }}
@else
{{ get_phrase('Approved') }}
@endif
@if (count($pendings))

{{ get_phrase('Showing') . ' ' . count($pendings) . ' ' . get_phrase('of') . ' ' . $pendings->total() . ' ' . get_phrase('data') }}

{{ $pendings->links() }} @endif @endif
@if (count($approved))

{{ get_phrase('Showing') . ' ' . count($approved) . ' ' . get_phrase('of') . ' ' . $approved->total() . ' ' . get_phrase('data') }}

@foreach ($approved as $key => $approve) @endforeach
# {{ get_phrase('Name') }} {{ get_phrase('Document') }} {{ get_phrase('Details') }} {{ get_phrase('Status') }}
{{ ++$key }} {{ get_user_info($approve->user_id)->name }} {{ get_phrase('Application details') }} @if ($approve->status == 0)
{{ get_phrase('Pending') }}
@else
{{ get_phrase('Approved') }}
@endif
@if (count($approved))

{{ get_phrase('Showing') . ' ' . count($approved) . ' ' . get_phrase('of') . ' ' . $approved->total() . ' ' . get_phrase('data') }}

{{ $approved->links() }} @endif @endif
@endsection @push('js') @endpush