@extends('panel.layouts.master') @section('content')
پاوربانک
پاوربانک
{{-- --}} {{--
--}} {{-- --}} {{-- هفته {{ $plan->week }}--}} {{--
--}} {{--
--}} {{-- --}} {{-- {{ $plan->type }}--}} {{--
--}} {{--
--}} {{-- --}} {{-- {{ $plan->test_type }}--}} {{--
--}} {{--
--}} {{-- --}} {{-- ترم {{ $plan->term }}--}} {{--
--}} {{--
--}} {{-- --}} {{-- سطح {{ $plan->level }}--}} {{--
--}} {{--
--}}
@php if(Gate::any(['admin', 'adviser'])){ $prevPlan = $user->plans()->where('plan_id', '<', $plan->id)->orderByDesc('id')->first(); $nextPlan = $user->plans()->where('plan_id', '>', $plan->id)->first(); }else{ $prevPlan = $authUser->plans()->where('plan_id', '<', $plan->id)->orderByDesc('id')->first(); $nextPlan = $authUser->plans()->where('plan_id', '>', $plan->id)->first(); } @endphp @if($prevPlan) هفته {{ $prevPlan->week }} @endif هفته {{ $plan->week }} @if($nextPlan) هفته {{ $nextPlan->week }} @endif
    @foreach($plan->dates as $key => $item) @php $isActive = ''; if($item->date == verta()->format('Y/m/d')){ $isActive = 'active'; } @endphp @endforeach
@foreach($plan->dates as $key => $date)
@foreach($date->boxes()->whereIn('box_type_id', \App\Models\BoxType::findType(['learn_test', 'quiz_test', 'desc_question']))->whereNotNull('file_code')->get() as $key => $item) @php $color = $item->boxType->color; $boxKey = $item->boxType->name; @endphp
{{ $item->boxType->title }}
@can('admin') @endcan
باکس {{ ++$key }}
{{ $item->lesson?->name }}
{{ !empty($item->subjects) ? implode(' ، ', $item->subjects()->with('subject')->get()->pluck('subject.name')->toArray()) : '' }}
{{ $item->resource }}
{{ $item->time ?? '-' }} دقیقه
مدت زمان
{{ $item->test_count ?? '25' }}
تعداد تست
@endforeach
@endforeach
@endsection