@extends('layouts.frontend') @section('content') @if (defined('CNF_CURRENCY')) @php $currency = SiteHelpers::getCurrentcurrency(CNF_CURRENCY) @endphp @else @php $currency = 'USD'; @endphp @endif

{!! Lang::get('core.custom_course_request'); !!}

@if($row->approved ==1 || $row->useraccess || \Session::get('gid') == "1") @include('customcourserequest/request_block') @include('customcourserequest/scripts') @else

{!! Lang::get('core.ccr_no') !!}

@endif
@if(($row->ccr_status ==4 && !empty($dispute)) && !empty($row->tutor_id) && isset($loggedid) && ($loggedid == $row->entry_by || $loggedid == $row->tutor_id || \Session::get('gid') == 1))

{!! Lang::get('core.dispute')!!}

Cancelled By: {!! ucfirst($dispute->cancelled_by) !!}

Reason: {!! $dispute->reason !!}

@if(\Session::get('gid') == 1) {!! Lang::get('core.finish_dispute')!!} @elseif($loggedid == $row->tutor_id) {!! Lang::get('core.finish_dispute')!!} @endif {!! Lang::get('core.Discussions')!!}

Refund Proposed by Student: {!! $currency.' '.$dispute->price_proposed_by_student !!} @if($loggedid == $row->entry_by) @endif

Refund Proposed by Tutor: {!! $currency.' '.$dispute->price_proposed_by_tutor !!} @if($loggedid == $row->tutor_id) @endif

Refund Proposed by Admin: {!! $currency.' '.$dispute->price_proposed_by_admin !!} @if(\Session::get('gid') == 1) @endif

@elseif(($row->ccr_status ==5 && !empty($dispute)) && !empty($row->tutor_id) && isset($loggedid) && ($loggedid == $row->entry_by || $loggedid == $row->tutor_id || \Session::get('gid') == 1))

{!! Lang::get('core.dispute')!!}

Cancelled By: {!! ucfirst($dispute->cancelled_by) !!}

Reason: {!! $dispute->reason !!}

{!! Lang::get('core.closed')!!}

Refund Proposed: {!! $currency.' '.$amount_refund !!}

Revised Final Total: {!! $currency.' '.$revised_total !!}

@endif @if(($row->useraccess || \Session::get('gid') == 1) && $row->ccr_status != '0')

{!! Lang::get('core.awarded_tutors')!!}

{!! $applications->display_name !!}

{!! Lang::get('core.vert_sep')!!}
{!! bsetecHelpers::timeago(strtotime($applications->createdOn)) !!}
{!! Lang::get('core.vert_sep')!!}
@if(\Cache::has('user-is-online-' . $applications->user_id)) Online @elseif(\Cache::has('user-is-away-' . $applications->user_id)) Away @else Offline @endif

{!! $currency !!} {!! $applications->price !!}

{!! Lang::get('core.btn_view')!!} {!! Lang::get('core.m_profile')!!} @if($row->ccr_status != '4' && $row->ccr_status != '5') {!! Lang::get('core.message')!!} @endif

{!! Lang::get('core.awarded_tutors')!!}

@if(!empty($shared_course) && ($loggedid == $row->tutor_id || $loggedid == $row->entry_by))

{!! Lang::get('core.shared_course')!!}: {!! $shared_course['title'] !!} @if($row->ccr_status ==3 && 1==2)
{!! Lang::get('core.Completed')!!}
@endif

@endif @if(($row->ccr_status ==1 || $row->ccr_status ==2) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->entry_by && ($row->request_completion))

{!! Lang::get('core.tutor_requested_completion') !!}

@endif @if($row->type == 'online' && $row->payment_type == 'hour' && isset($loggedid) && ($loggedid == $row->tutor_id || $loggedid == $row->entry_by || \Session::get('gid') == 1))

{!! Lang::get('core.total_meeting_time') !!} : {!! $total_meeting_time !!}

{!! Lang::get('core.amount_calc') !!} : {!! $currency !!} {!! $amount_calc !!}

{!! Lang::get('core.note') !!} : {!! Lang::get('core.note_total_time') !!}. @if($loggedid == $row->entry_by) {!! Lang::get('core.note_total_time_student') !!} @endif
@endif @if(!empty($recordings) && ($row->ccr_status !=0) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->entry_by)
@foreach($recordings as $key => $recording)
{!! Lang::get('core.recording_for') !!} {!! $key+1 !!} {!! Lang::get('core.view') !!}
@endforeach
@endif
@elseif($row->useraccess && !$row->ccr_status)

{!! Lang::get('core.applied_tutors')!!} ({!! $row->tutor_count !!})

@foreach($applications as $application)

{!! $application->display_name !!}

{!! Lang::get('core.vert_sep')!!}
{!! bsetecHelpers::timeago(strtotime($application->createdOn)) !!}
{!! Lang::get('core.vert_sep')!!}
@if(\Cache::has('user-is-online-' . $application->user_id)) Online @elseif(\Cache::has('user-is-away-' . $application->user_id)) Away @else Offline @endif

{!! $currency !!} {!! $application->price !!}

@endforeach
@endif
@include('customcourserequest/apply_block') @include('customcourserequest/cancel_block') @include('customcourserequest/message') @if($row->type == 'offline' && ($row->ccr_status ==1 || $row->ccr_status ==2) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->entry_by) @endif @if($row->type == 'offline' && ($row->ccr_status ==1 || $row->ccr_status ==2) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->tutor_id)