@extends('admin.layouts.app') @section('title') {{ __('test_list') }} @endsection @section('content')

Mock Test List ({{ $mocktest->total() }})

  • {{-- @if (userCan('mocktest.create')) --}}
    @csrf
    {{-- @endif --}}
Filter with name
@if (request()->all())   Clear @endif
@php $tableHeaders = [ ['title' => 'S.no', 'style' => 'width: 15%;'], ['title' => 'Test Id', 'style' => 'width: 15%;'], ['title' => 'Reading', 'style' => 'width: 10%;'], ['title' => 'Listening', 'style' => 'width: 6%;'], ['title' => 'Writing', 'style' => 'width: 5%;'], ['title' => 'Speaking', 'style' => 'width: 5%;'], ['title' => 'Date', 'style' => 'width: 10%;'], // ['title' => 'Action', 'style' => 'width: 12%;'], ]; @endphp @foreach ($tableHeaders as $header) @endforeach @forelse ($mocktest as $data) {{-- --}} @empty @endforelse
{{ $header['title'] }}
{{ $loop->iteration }} {{ $data->id }} @if ($data->reading_test_id !== null) @php $readingTest = App\Models\IeltsExamsTest::find($data->reading_test_id); @endphp @if ($readingTest == null && $readingTest->questions_data == null || $readingTest->questions_data == '') @else @endif @endif @if ($data->listening_test_id !== null) @php $readingTest = App\Models\IeltsExamsTest::find($data->listening_test_id); @endphp @if ($readingTest == null && $readingTest->questions_data == null || $readingTest->questions_data == '') @else @endif @endif @if ($data->writing_test_id !== null) @php $readingTest = App\Models\IeltsExamsTest::find($data->writing_test_id); @endphp @if ($readingTest == null && $readingTest->questions_data == null || $readingTest->questions_data == '') @else @endif @endif @if ($data->speaking_test_id !== null) @php $readingTest = App\Models\IeltsExamsTest::find($data->speaking_test_id); @endphp @if ($readingTest == null && $readingTest->questions_data == null || $readingTest->questions_data == '') @else @endif @endif Created: {{ \Carbon\Carbon::parse($data->created_at)->format('d/m/Y') }}
Modified: {{ \Carbon\Carbon::parse($data->updated_at)->format('d/m/Y') }}
@if (userCan('mocktest.delete'))
@method('DELETE') @csrf
@endif
No Data Found.........
@if ($mocktest->count())
{{ $mocktest->links() }}
@endif
@endsection @section('style') @endsection @section('script') @endsection