{{ $website_lang->where('lang_key','payment_history')->first()->custom_lang }}
@foreach ($lawyers as $index => $lawyer) @php $total=$appointments->where('lawyer_id',$lawyer->id)->sum('appointment_fee') @endphp @endforeach
{{ $website_lang->where('lang_key','serial')->first()->custom_lang }} {{ $website_lang->where('lang_key','name')->first()->custom_lang }} {{ $website_lang->where('lang_key','email')->first()->custom_lang }} {{ $website_lang->where('lang_key','phone')->first()->custom_lang }} {{ $website_lang->where('lang_key','payment')->first()->custom_lang }}
{{ ++$index }} {{ ucfirst($lawyer->name) }} {{ $lawyer->email }} {{ $lawyer->phone }} {{ $currency->currency_icon }}{{ $total }}