@extends('layouts.site') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{trans('home.therapistsrequests')}} @if(count($therapistsrequests) >0)
@php $titleCol='title_'.app()->getLocale(); @endphp @foreach($therapistsrequests as $key=>$row) @endforeach
# {{trans('home.column-name')}} {{trans('home.from')}} {{trans('home.to')}} {{trans('home.current-status')}} {{trans('home.action')}}
{{$key+1}} @if($row->column_name == "speciality_id") {{ Lang::get('home.specialties') }} @else {{ Lang::get('home.'.$row->column_name) }} @endif @if($row->column_name == "speciality_id") {{ implode(',',$row->therapist->specialties()->pluck($titleCol)->toArray()) }} @elseif($row->column_name == "language_id") @if($row->languagefrom !=null) {{ $row->languagefrom->$titleCol }} @endif @elseif($row->column_name == "country_id") @if($row->countaryfrom !=null) {{ $row->countaryfrom->$titleCol }} @endif @else {!! $row->from !!} @endif @if($row->column_name == "speciality_id") {{ implode(',',\App\Specialties::whereIn('id',(is_array($toIds=json_decode($row->to))?$toIds:[$toIds]))->pluck('title_'.app()->getLocale())->toArray()) }} @elseif($row->column_name == "language_id") @if($row->languageto !=null) {{ $row->languageto->$titleCol }} @endif @elseif($row->column_name == "country_id") @if($row->countaryto !=null) {{ $row->countaryto->$titleCol }} @endif @else {!! $row->to !!} @endif {{ Lang::get('main.'.$row->status) }} @if($row->status =='pending') {{trans('home.cancel')}} @else @endif
@else

{{trans('home.no-changes')}}

@endif
@endsection