@extends('layouts.frontend')
@section('content')
@if (defined('CNF_CURRENCY'))
@php $currency = SiteHelpers::getCurrentcurrency(CNF_CURRENCY) @endphp
@else
@php $currency = 'USD'; @endphp
@endif
@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 !!}
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 !!}
@if(!empty($shared_course) && ($loggedid == $row->tutor_id || $loggedid == $row->entry_by))
@endif
@if(($row->ccr_status ==1 || $row->ccr_status ==2) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->entry_by && ($row->request_completion))
@endif
@if($row->type == 'online' && $row->payment_type == 'hour' && isset($loggedid) && ($loggedid == $row->tutor_id || $loggedid == $row->entry_by || \Session::get('gid') == 1))
@endif
@if(!empty($recordings) && ($row->ccr_status !=0) && !empty($row->tutor_id) && isset($loggedid) && $loggedid == $row->entry_by)
@foreach($recordings as $key => $recording)
@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)