@extends('user-panel.layouts.master') @section('title', 'دوره ها') @section('content') @if ($authUser->field == null && $authUser->grade == null) @endif

لیست دوره ها

@foreach ($allCourses as $item) @php $url = route('course', $item->slug); if ($item->is_package) { $url = route('bigbang', $item->slug); } @endphp @endif @endforeach
{{-- {{ $course->links('pagination::defaultcopy') }} --}}
@if (!$payments->isEmpty()) @foreach ($payments as $item) @php $course = $item->course; $url = route('course', $course->slug); $route = $course->url ?? ''; if ($course->is_package) { if ($course->url == '') { $url = route('bigbang', $course->slug); } else { $url = route($route, $course->slug); } } @endphp
@php if (!$course->is_package) { if ($course->url == '') { $url = route('course', $course->slug); } else { $url = route($route, $course->slug); } } @endphp
image
{{ $course->teacher->name ?? '' }}

{{ $course->name }}

@endforeach @else

حواست هست هنوز هیچ درسی نخریدی! عجله کن تا از دوستات جا نمونی

@endif
{{--
@foreach ($installments as $item) @php $course = $item->installment->course; $url = route('course', $course->slug); if ($course->is_package) { $url = route('bigbang', $course->slug); } @endphp @endforeach
--}}
@endsection