@extends('layouts.site')
@section('content')
# | {{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 |