@extends('layouts.admin.layout') @section('title') {{ $website_lang->where('lang_key','appointment')->first()->custom_lang }} @endsection @section('admin-content')
{{ $website_lang->where('lang_key','appointment_table')->first()->custom_lang }}
@foreach ($appointments as $index => $item) @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','date')->first()->custom_lang }} {{ $website_lang->where('lang_key','time')->first()->custom_lang }} {{ $website_lang->where('lang_key','payment')->first()->custom_lang }} {{ $website_lang->where('lang_key','action')->first()->custom_lang }}
{{ ++$index }} {{ ucfirst($item->user->name) }} {{ $item->user->email }} {{ $item->user->phone }} {{ date('m-d-Y',strtotime($item->date)) }} {{ optional($item->schedule)->start_time.'-'.optional($item->schedule)->end_time }} @if ($item->payment_status==0) {{ $website_lang->where('lang_key','pending')->first()->custom_lang }} @else {{ $website_lang->where('lang_key','success')->first()->custom_lang }} @endif @if ($item->already_treated==1) @endif
@endsection