@include('pages.layout.flash_messages')
@include('components.breadCrumb.list',['path' => route('consultants.create'), 'excel_path'=>route('consultants.download-excel'),'pdf_path'=>route('consultants.download-pdf'),'section' => __('Consultants'),'permssion' => 'consultants.manage']) {!! Form::open(['route'=>['consultants.index'], 'method'=>'get']) !!}
{!! Form::submit(__('Search ..'), ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@forelse ($consultants as $consultant) @empty
{{__("No entry found")}}
@endforelse
{{__("ID")}} {{__("PHOTO")}} {{__("NAME")}} {{__("PHONE")}} {{__("EMAIL")}} {{__("Country")}} {{__("Percentage taken")}} {{__("CREATION DATE")}} {{__("STATUS")}} {{__("Action")}}

{{$consultant->id}}

@if($consultant->photo) user1 @else user1 @endif
{{$consultant->name}}
{{$consultant->phone}}
{{$consultant->email}} {{$consultant->country?->name}} {{ $consultant->percentage_taken }}% {{$consultant->created_at->format('y/m/d')}} {{$consultant->statusTrans}}
{{ $consultants->appends(Request::only(['consultant_search','status']))->links("pagination::bootstrap-4") }}