@extends('layouts.app') @section('content') @php $bg = base64_encode(file_get_contents(public_path('images/print/header-page.png'))); $logoIvory = base64_encode(file_get_contents(public_path('images/print/print-logo.png'))); $logoIvory2 = base64_encode(file_get_contents(public_path('images/print/logo.png'))); $logoIvory3 = base64_encode(file_get_contents(public_path('images/print/logo2.png'))); $logoIvory4 = base64_encode(file_get_contents(public_path('images/print/footerlogo.png'))); $line = base64_encode(file_get_contents(public_path('images/print/line.png'))); @endphp @php $logoIvory3 =''; $imgCourse = $logoIvory; $imgPath = public_path($group->img); if (file_exists($imgPath) && is_file($imgPath)) { $imgCourse = base64_encode(file_get_contents(public_path($group->img))); } if($group->companies->count()==1){ $imgPath = public_path($group->companies[0]->logo); if (file_exists($imgPath) && is_file($imgPath)) { $logoIvory3 = base64_encode(file_get_contents($imgPath)); }else{ } } @endphp {{--
تحميل

--}}

{{ $group->name }}

@php $start_date = \Carbon\Carbon::parse($group->start_date)->locale('ar'); $end_date = \Carbon\Carbon::parse($group->end_date)->locale('ar'); @endphp {{ $start_date->day }} {{ $start_date->translatedFormat('F Y') }}
{{ $end_date->day }} {{ $end_date->translatedFormat('F Y') }}

نبذة عن البرنامج التدريبي

{{ $group->name }}

وقت الدورة

{{ $start_date->day }} {{ $start_date->translatedFormat('F Y') }} – {{ $end_date->day }} {{ $end_date->translatedFormat('F Y') }}
من الساعة : {{ $group->start_time }} الى الساعة {{ $group->end_time }}

عدد الممرشحين

{{ $group->participants->count() }}

اسم المدرب

@foreach ($group->coaches as $coach)
{{ $coach->my_full_name }}
@endforeach

مكان التنقيد

{{ optional($group->venue)->name }}
{{ optional($group->venue->hotel)->name }} {{ optional($group->venue->hotel->city)->name . ', ' . optional($group->venue->hotel->city->country)->name }}

نبذة عن البرنامج التدريبي

{{ $group->description }}

الأهداف العامة للبرنامج

@foreach ($group->cource_objective as $key => $goal) @if($key % 3 == 0)
@endif

{{ $goal }}

@if(($key + 1) % 3 == 0 || $loop->last)
@endif @endforeach
{{--
@foreach ($group->cource_objective as $key => $goal)

{{ $goal }}

@endforeach
--}} {{--
  • {{ $goal }}
  • --}} {{--

    تعريف 1الخطر والتأمين

    تعريف 2الخطر والتأمين

    تعريف 3الخطر والتأمين

    تعريف 4الخطر والتأمين

    تعريف 5الخطر والتأمين

    تعريف 6الخطر والتأمين

    تعريف ال7خطر والتأمين

    تعريف 8الخطر والتأمين

    --}} {{-- --}}
    {{-- --}}
    @php $review = ''; $section = ''; $arrSection = []; @endphp {{-- @dump($globals) @dump($list_titles) --}} @foreach($globals as $index => $data) @if(!in_array($list_titles[$index]['section'],$arrSection) )

    قياس مستوى التفاعل بشكل تفصيلي

    {{--

    {{ $list_titles[$index]['review'] }}

    --}}
    @php $first = 0; @endphp @foreach($globals as $innerIndex => $innerData) @if($list_titles[$index]['section'] == $list_titles[$innerIndex]['section']) @if ($first==0 || $first==4)
    @if ($first==0 )

    {{ $list_titles[$innerIndex]['section'] }}

    @endif
    @endif @php $first ++; @endphp @endif @endforeach
    @php $first = 0; @endphp @foreach($globals as $innerIndex => $innerData) @if($list_titles[$index]['section'] == $list_titles[$innerIndex]['section']) @if ($first==0 || $first==4)
    @if ($first==0 )

    {{ $list_titles[$innerIndex]['section'] }}

    @endif
    @endif

    {{ $list_titles[$innerIndex]['question'] }}

    {{--
    --}} {{--
    --}}
    @php $first ++; @endphp @endif @endforeach
    @endif @php $review = $list_titles[$index]['review']; $arrSection[] = $list_titles[$index]['section']; @endphp @endforeach

    تسجيل الحضور و الغياب

    {{-- عدد الحضور --}} {{ $presentTotal[0]['value'] }}

    100 % من احمالي المتدربين

    {{-- عدد الغياب --}} {{ $presentTotal[1]['value'] }}

    0 % من ا مالي المتدربين

    {{--
    --}}

    تسجيل الحضور و الغياب

    @foreach ($presentTable as $session) @endforeach @if($presentTable) @foreach ($presentTable[0]['participants'] as $key => $participant) @php $index = $loop->iteration; @endphp @foreach ($presentTable as $session) @endforeach @endforeach @endif
    # المشترك{{ $session['session'] }}الالتزام بالحضور
    {{ $loop->iteration }} {{ $key }} {{ round($participantPercentage[$key], 2) }}%

    قياس مستوى التفاعل
    بشكل عام

    @php $displayedReviews = []; @endphp @foreach($reviewChartGlobal as $index => $data) @if ( !in_array($list_reviews[$index]['review'], $displayedReviews)) {{--

    {{ $list_reviews[$index]['review'] }}

    --}} @endif

    {{ $list_reviews[$index]['section']}}

    {{--
    --}}
    @php $displayedReviews[] = $list_reviews[$index]['review']; @endphp @endforeach

    قياس مستوى التحسن
    لدى المشاركين

    {{--
    --}}
    متوسط الاختبار القبلي % {{ $nbParticipants > 0 ? number_format(($sumBefore / $nbParticipants)*100 / $groupExamBeforeTotal,2) : 0 }}
    متوسط الاختبار البعدي % {{ $nbParticipants >0 ? number_format(($sumAfter / $nbParticipants) * 100 / $groupExamAfterTotal,2) : 0 }}
    معدل الزيادة % {{ $sumAfter>0 ? number_format((($sumAfter-$sumBefore) / $sumAfter)*100,2) : 0}}
    @foreach ($text_responses_names as $key => $name)
    {{--

    {{ $name }}

    --}} {{-- design of reviews --}} @php $displayedQuestions = []; $displayedSections = []; @endphp @foreach ($text_responses as $item) @if ($item['review'] == $name && !in_array($item['question'], $displayedQuestions)) @if (!in_array($item['section'], $displayedSections)) {{--

    {{ $item['section'] }}

    --}}

    {{$item['section'] }}

    @endif
    {{ $item['question'] }}
      @foreach ($text_responses as $value) @if ($item['review'] == $name && $item['question'] == $value['question'])
    • {{ $value['response'] }}
    • @endif @endforeach
    @php $displayedQuestions[] = $item['question']; $displayedSections[] = $item['section']; @endphp @endif @endforeach
    @endforeach {{-- @foreach ($text_responses_names as $key => $name)

    {{ $name }}

    @foreach ($text_responses as $key => $item) @if($item['review']==$name /*and $item['question'] not repete */)
    {{ $item['question'] }} {{ $key }}
    @php $index = 0 @endphp
      @foreach ($text_responses as $key => $value) @if($item['review']==$name && $item['question']==$value['question'] && $index<3)
    1. {{ $value['response'] }}
    2. @php $index = 0 @endphp @endif @endforeach
    @endif @endforeach
    @endforeach --}}

    صور من البرنامج التدريبي

    @if($group->images) @foreach (array_slice($group->images, 0, 4) as $index => $img)
    @endforeach @endif
    {{--
    --}} {{-- for circle --}} {{-- for present --}} {{-- new charts --}} @foreach($globals as $index => $data) @endforeach {{-- @dump($presentTotal) --}} @foreach($reviewChartGlobal as $index => $data) {{-- 3d --}} @endforeach @endsection