:::

4-1 /resources/views/exam/index.blade.php

@extends('layouts.app') 

@section('content')
    <h1>隨機題庫系統<small>(共 {{$exams->total()}} 筆資料)</small></h1>

    <div class="list-group">      

        @forelse($exams as $exam)
            <a href="exam/{{ $exam->id }}" class="list-group-item list-group-item-action">
                {{ $exam->updated_at->format('Y年m月d日') }}
                {{ $exam->title }}
                @if(!$exam->enable)
                    <span class="badge badge-danger">關</span>
                @endif
            </a>
        @empty
            <div class="alert alert-danger">
                尚無任何測驗
            </div>
        @endforelse

    </div>
    <div class="mt-3">
        {{ $exams->links() }}
    </div>
@endsection

 


:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D41%26tbdsn%3D1302

計數器

今天: 2220222022202220
昨天: 4038403840384038
總計: 5566183556618355661835566183556618355661835566183