@extends('layouts.admin') @section('content')
Dashboard | Current Offered Courses
{{--
--}}
{{--
--}}
@lang('student.search by course name')
@lang('student.filter by')
{{-- @forelse ($sessions as $session => $item) --}}
@foreach ($offered_courses as $offer) @endforeach
{{ $offer->esname }}
{{ $offer->cname }}
@if ($offer->has_label) @endif

{{ $offer->cname }}

{{ $offer->lname }}


{{ $offer->sname }} {{ $offer->year }}

{{ $offer->bname }}

{{--

--}}

{{ Str::limit($offer->cdescription, 100, '....') }}

@php if($offer->fee_per_lesson_total_aed == 0){ $byLessonAmount = $offer->fee_per_lesson_total; }else{ $byLessonAmount = $offer->fee_per_lesson_total_aed ; } if($offer->fee_per_course_total_aed == 0){ $currency = 'EGP'; }else{ $currency = 'AED'; } if($offer->fee_per_course_total_aed == 0){ $byCourseAmount = $offer->fee_per_course_total; }else{ $byCourseAmount = $offer->fee_per_course_total_aed ; } if($offer->fee_course_per_month_aed == 0){ $byMonthAmount = $offer->fee_course_per_month; }else{ $byMonthAmount = $offer->fee_course_per_month_aed; } @endphp
@if ($offer->fee_per_lesson_total > 0) @if ($offer->currency == 2)

{{ $byLessonAmount }} EGP / @lang('student.lesson')

@else

{{ $byLessonAmount }} AED / @lang('student.lesson')
{{ round($byLessonAmount * $rate, 2) }} EGP / @lang('student.lesson')

@endif @endif @if ($offer->fee_per_course_total > 0) @if ($offer->currency == 2)

@if ($offer->by_month) {{$byMonthAmount}} {{ $currency }} / @lang('student.month') @elseif ($offer->course_discount > 0 ) {{$byCourseAmount}} {{ $byCourseAmount - ($byCourseAmount * ($offer->course_discount / 100)) }} {{ $currency }} / @lang('student.course') @else {{$byCourseAmount}} {{ $currency }} / @lang('student.course') @endif

@else

@if ($offer->by_month) {{$byMonthAmount}} AED / @lang('student.month')
{{round($byMonthAmount * $rate)}} EGP / @lang('student.month') @elseif ($offer->course_discount > 0 ) {{$byCourseAmount}} {{ $byCourseAmount - ($byCourseAmount * ($offer->course_discount / 100)) }} AED / @lang('student.course')
@if ($offer->is_priced) {{round($offer->fee_per_course_total_egp, 2)}} {{ round(($offer->fee_per_course_total_egp - ($offer->fee_per_course_total_egp * ($offer->course_discount / 100))), 2) }} @else {{round($byCourseAmount * $rate, 2)}} {{ round(($byCourseAmount - ($byCourseAmount * ($offer->course_discount / 100))) * $rate, 2) }} @endif @else {{$byCourseAmount}} AED / @lang('student.course')
{{$offer->is_priced ? $offer->fee_per_course_total_egp : $byCourseAmount * $rate}} EGP / @lang('student.course') @endif

@endif @endif @if($offer->allow_enrollment)

@lang('student.enrollment-opened')

@else

@lang('student.enrollment-closed')

@endif
@if (in_array(auth()->id(),[1,3]))

{{-- --}} {{-- --}} {{-- --}} {{-- @if ($offer->course_discount == 0) @else @endif --}}

@endif
{{-- @empty

Looks like There Is No Courses Been Found

@endforelse --}}
{{--
--}}
{{-- add course group modal --}} @include('components.course_offering.modals') @endsection @section('admin-js') {{-- --}} {{-- course offering tools --}} @endsection