|
| 1 | +@extends('frontend.layouts.app') |
| 2 | +@section('main') |
| 3 | + <div class="container my-5"> |
| 4 | + <h3 class="text-center text-muted">Packages:</h3> |
| 5 | + <div class="row"> |
| 6 | + @if (count($packages) > 0) |
| 7 | + <table class="table table-responsive table-striped"> |
| 8 | + <thead class="bg-light"> |
| 9 | + <tr> |
| 10 | + <th class="">No</th> |
| 11 | + <th class="">Name</th> |
| 12 | + <th class="" style="width: 80px;">Action</th> |
| 13 | + </tr> |
| 14 | + </thead> |
| 15 | + <tbody> |
| 16 | + @foreach ($packages as $key => $package) |
| 17 | + <tr> |
| 18 | + <td>{{ ++$key }}</td> |
| 19 | + <td> |
| 20 | + |
| 21 | + <a href="#" class="d-flex align-items-start gap-2 text-reset"> |
| 22 | + <div> |
| 23 | + <span data-feather="folder" class="icon-dual"></span> |
| 24 | + </div> |
| 25 | + <div> |
| 26 | + <div class="fw-medium">{{ $package->name }}</div> |
| 27 | + <div class="d-flex mt-2 gap-2 align-items-center"> |
| 28 | + <span data-feather="package" class="icon-dual w-4 h-4"></span> |
| 29 | + {{ $package->caseStudies?->count() }} Packages |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + </a> |
| 33 | + </td> |
| 34 | + <td> |
| 35 | + <x-backend.ui.button type="custom" class="btn-sm text-capitalize btn-dark" |
| 36 | + href="{{ route('course.caseStudy.index', ['package_id' => $package->id]) }}"> |
| 37 | + CaseStudies |
| 38 | + </x-backend.ui.button> |
| 39 | + |
| 40 | + </td> |
| 41 | + </tr> |
| 42 | + @endforeach |
| 43 | + </tbody> |
| 44 | + </table> |
| 45 | + @else |
| 46 | + <section class="bg-light d-flex align-items-center justify-content-center rounded" style="height: 400px;"> |
| 47 | + <div class=""> |
| 48 | + <p>You havn't purchased any caseStudies yet!</p> |
| 49 | + <a href="{{ route('course.caseStudy.page') }}" |
| 50 | + class="btn btn-primary rounded-3 w-100 mx-auto">Explore |
| 51 | + CaseStudies</a> |
| 52 | + </div> |
| 53 | + </section> |
| 54 | + @endif |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + @if (count($studies) > 0) |
| 58 | + <div class="container my-5"> |
| 59 | + <h3 class="text-center text-muted">Case Studies:</h3> |
| 60 | + <div class="row"> |
| 61 | + <table class="table table-responsive table-striped"> |
| 62 | + <thead class="bg-light"> |
| 63 | + <tr> |
| 64 | + <th class="">No</th> |
| 65 | + <th class="">Name</th> |
| 66 | + <th class="" style="width: 80px;">Action</th> |
| 67 | + </tr> |
| 68 | + </thead> |
| 69 | + <tbody> |
| 70 | + @foreach ($studies as $key => $study) |
| 71 | + <tr> |
| 72 | + <td>{{ ++$key }}</td> |
| 73 | + <td> |
| 74 | + |
| 75 | + <a href="#" class="d-flex align-items-start gap-2 text-reset"> |
| 76 | + <div> |
| 77 | + <span data-feather="folder" class="icon-dual"></span> |
| 78 | + </div> |
| 79 | + <div> |
| 80 | + <div class="fw-medium">{{ $study->name }}</div> |
| 81 | + </div> |
| 82 | + </a> |
| 83 | + </td> |
| 84 | + <td> |
| 85 | + <x-backend.ui.button type="custom" class="btn-sm text-capitalize btn-dark" |
| 86 | + href="{{ route('course.caseStudy.show', ['caseStudy' => $study]) }}"> |
| 87 | + View |
| 88 | + </x-backend.ui.button> |
| 89 | + |
| 90 | + </td> |
| 91 | + </tr> |
| 92 | + @endforeach |
| 93 | + </tbody> |
| 94 | + </table> |
| 95 | + |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + @endif |
| 99 | +@endsection |
0 commit comments