@extends('admin.layouts.master') @section('request_service', 'active') @section('title') {{ $data['title'] ?? '' }} @endsection @push('style') @endpush @php $service = $data['service']; $bids = $data['bids']; @endphp @section('content')

{{ $data['title'] ?? '' }}

Manage {{ $data['title'] ?? '' }}

Service Details
Service Title:{{ $service->service_title ?? 'Service Title' }}

Category: {{ $service->serviceCategory->name ?? 'N/A' }}

Requested Date: {{ date('d M Y', strtotime($service->request_date)) ?? 'N/A' }}

Requested time: {{ $service->request_time ?? 'N/A' }}

Service Price: {{ $service->service_rate ?? 'N/A' }} Ksh

Bid List
@forelse ($bids as $bid)
{{ $bid->user->name }}
{{ $bid->user->name }}
@php $subCategoryIds = is_array($bid->user->subCategory_id) ? $bid->user->subCategory_id : json_decode($bid->user->subCategory_id, true) ?? []; @endphp @foreach($subCategoryIds as $subCategoryId) @php $subCategory = DB::table('sub_categories')->where('id', $subCategoryId)->first(); @endphp {{ $subCategory->name ?? 'Unknown' }}{{ !$loop->last ? ',' : '' }} @endforeach
Bid: {{ $bid->bid_amount }} KSh {{ $bid->status ?? 'Pending' }}
@empty
No bids available for this service yet.
@endforelse
@endsection @push('script') @endpush