@if($type == 'refund')
@if (Config::get('app.locale') === 'en')
{{isset($log->uniName)?$log->uniName:''}}
@else
{{isset($log->uniNameChinese)?$log->uniNameChinese:''}}
@endif
@if (Config::get('app.locale') === 'en')
{{isset($log->courseNameEnglish)?$log->courseNameEnglish:''}}
@else
{{isset($log->courseNameChinese)?$log->courseNameChinese:''}}
@endif
@if((isset($log->currency)?$log->currency:'') == Currency::GBP)
{{"£"}}
@else
{{"¥"}}
@endif
{{isset($log->totalPaid)?$log->totalPaid:''}}
{{__('Refund Details')}}{{":"}}
{{__('Refund Amount')}}{{":"}}
@if((isset($log->currency)?$log->currency:'') == Currency::GBP)
{{"£"}}
@else
{{"¥"}}
@endif
{{isset($log->refundValue)?$log->refundValue:''}}
{{__('Date')}}{{":"}} {{isset($log->refundDate)?$log->refundDate:''}}
@else
@if (Config::get('app.locale') === 'en')
{{isset($newCourse->uniName)?$newCourse->uniName:''}}
@else
{{isset($newCourse->uniNameChinese)?$newCourse->uniNameChinese:''}}
@endif
@if (Config::get('app.locale') === 'en')
{{isset($newCourse->courseNameEnglish)?$newCourse->courseNameEnglish:''}}
@else
{{isset($newCourse->courseNameChinese)?$newCourse->courseNameChinese:''}}
@endif
@if((isset($newCourse->currency)?$newCourse->currency:'') == Currency::GBP)
{{"£"}}
@else
{{"¥"}}
@endif
{{isset($newCourse->totalPaid)?$newCourse->totalPaid:''}}
@foreach($changeLogs as $key=>$log)
{{__('Course Change')}}{{":"}}
{{__('Date')}}{{":"}}{{$log->changeDate}}
{{__('University')}}{{":"}}
@if (Config::get('app.locale') === 'en')
{{isset($log->uniName)?$log->uniName:''}}
@else
{{isset($log->uniNameChinese)?$log->uniNameChinese:''}}
@endif
{{__('Course')}}{{":"}}
@if (Config::get('app.locale') === 'en')
{{isset($log->courseNameEnglish)?$log->courseNameEnglish:''}}
@else
{{isset($log->courseNameChinese)?$log->courseNameChinese:''}}
@endif
{{__('Price')}}{{":"}}
@if((isset($log->currency)?$log->currency:'') == Currency::GBP)
{{"£"}}
@else
{{"¥"}}
@endif
{{isset($log->totalPaid)?$log->totalPaid:''}}
{{--TODO: check if price has changed--}}
@if(false)
{{__('Price Difference')}}{{":"}}
{{--Price--}}
@endif
@endforeach
@endif