@extends('layouts.master') @section('title') لوحة التحكم @endsection @section('first-css') @endsection @section('content-body') @include('massages') @if (Auth::user()->role == 0) @include('admin.dashboard') @elseif(Auth::user()->role == 1) @include('trainer.dashboard') @else
@isset($rooms) @foreach ($rooms as $room)
Card image cap

برنامج @isset($room->room->course->title) {{ $room->room->course->title }} @endisset

برنامج @isset($room->room->course->title) {{ $room->room->course->title }} @endisset
مشرف البرنامج: @isset($room->room->trainer->name) {{ $room->room->trainer->name }} @endisset
عدد الدروس @isset($room->room->course->lessons) {{ count($room->room->course->lessons) }} @endisset
الملحقات @php $hase_certificate = false; @endphp @isset($certificates) @foreach ($certificates as $certificate) @if ($certificate->room_id == $room->room->id) الشهادة @php $hase_certificate = true; @endphp @break @else @php $hase_certificate = false; @endphp @endif @endforeach @if (!$hase_certificate) الاختبارات @endif @else الاختبارات @endisset
@endforeach @endisset
@endif @endsection @section('script') @endsection