@extends('admin.layout.dashboard-template') @section('content')

Booking Details

@php $service=App\Models\Service::where('id',$data->service_id)->first(); @endphp @php $agent=App\Models\User::where('id',$data->agent_id)->first(); @endphp @php if ($data->status == 'Processing') { $class = "warning"; } elseif ($data->status == 'Approved') { $class = "success"; } elseif ($data->status == 'Completed') { $class = "primary disabled"; }elseif ($data->status == 'Declined') { $class = "danger"; } @endphp @if($data->status=='Declined') @endif
Customer Name {{$data->customer_name}}
Service Name{{$service->title}}
Agent{{$agent->name}}
Cusomer Phone Number {{$data->phone_number}}
Transaction Number {{$data->number}}
Time {{$data->service_time}}
Date {{date("d M Y",strtotime($data->service_date))}}
Status
Declined Reason {{$data->declined_reason}}


@if($data->status=='Processing')

Notes Send Note

@endif @foreach(App\Models\Note::orderBy('id','DESC')->get() as $item)
{{$item->note}} Remove Note

@endforeach
@endsection