@extends('panel.layouts.master') @section('content') @php use App\Models\Plan;use Illuminate\Support\Facades\Gate; @endphp
کنکور مپ
برنامه مطالعاتی
رشته {{ $plan->field->name }}
@if($plan->is_farhangian)
متقاضی کنکور فرهنگیان {{ Plan::IS_FARHANGIAN[$plan->is_farhangian] }}
@endif
برنامه ۱۰ روزه
    @foreach($plan->dates as $key => $item) @php $isActive = null; if($item->date == verta()->format('Y/m/d')){ $isActive = 'active'; } @endphp @endforeach
@if($plan->files()->whereType('test')->count() > 0) @endif @if($plan->files()->whereType('bank')->count() > 0) @endif
@foreach($plan->dates as $key => $date) @php $isActive = null; if($date->date == verta()->format('Y/m/d')){ $isActive = 'active'; } @endphp
@foreach($date->boxes as $key => $item) @php $color = $item->boxType->color; $boxKey = $item->boxType->name; @endphp
{{ $item->boxType->title == 'تست آزمونی' ? 'تست جمع بندی' : $item->boxType->title }}
{{ $item->lesson?->name }}

{{ $item->subject }}

{{ $item->resource }}

{{ $item->time ?? '-' }} دقیقه
مدت زمان
@php $dir = ""; $farhangians = ["هوش و استعداد", "دینی دهم", "مهارت معلمی"]; switch ($item->box_type_id){ case 1: if(in_array($item->lesson->name, $farhangians)){ $dir = "FastChargeMolaemShoPlan"; }else{ $dir = "FastchargeBooklet"; } break; case 2: $dir = ""; break; case 3: $dir = "FastchargeBank"; break; case 4: $dir = ""; break; case 5: $dir = "FastChargeRooznaameDivarriPlan"; break; case 8: $dir = ""; break; } @endphp @if($item->box_type_id != 8) دانلود فایل @endif @if($item->box_type_id == 1 && in_array($item->lesson->name, $farhangians)) دانلود ویدیو @endif
@endforeach @can('admin') @endcan
@endforeach
@endsection @section('script') @endsection