@extends('layouts.admin') @section('title', 'Business Details - ' . $business->business_name) @section('content')

{{ $business->business_name }}

Owner: {{ $business->owner->full_name }} | {{ $business->email }}

@if($business->status === 'pending') @endif Back
Status
@if($business->status === 'verified') Verified @elseif($business->status === 'pending') Pending @elseif($business->status === 'rejected') Rejected @else {{ ucfirst($business->status) }} @endif
Total Venues
{{ $business->venues()->count() }}
Total Offers
{{ $business->offers()->count() }}
Rating
@if($business->rating) {{ number_format($business->rating, 1) }} @else No ratings yet @endif
Business Information
{{ $business->business_name }}
{{ $business->description ?? 'No description provided' }}
{{ $business->trade_license_number ?? 'N/A' }}
{{-- display documnet link--}}
@if($business->trade_license_document) View Document @else N/A @endif
{{ $business->phone }}
{{ $business->email }}
@if($business->website) @endif {{--
--}} {{-- --}} {{--
{{ $business->address }}
--}} {{--
--}}
{{ $business->created_at->format('M d, Y h:i A') }}
{{ $business->updated_at->format('M d, Y h:i A') }}
@if($business->license_document || $business->registration_document)
Documents
@if($business->license_document)
Trade License
Uploaded document
View Document
@endif @if($business->registration_document)
Registration Certificate
Uploaded document
View Document
@endif
@endif
Venues
{{-- create veneue--}} Add Venue
@php $venues = $business->venues()->take(10)->get(); @endphp @if($venues->count() > 0)
@foreach($venues as $venue) @endforeach
Venue Name Category City Status Actions
{{ $venue->name }} {{ $venue->category->name ?? 'N/A' }} {{ $venue->city }} @if($venue->status === 'active') Active @else {{ ucfirst($venue->status) }} @endif
@else
No venues registered yet
@endif
Owner Information
{{ $business->owner->full_name }}
{{ $business->owner->email }}
{{ $business->owner->phone ?? 'N/A' }}
@if($business->owner->status === 'active') Active @else {{ ucfirst($business->owner->status) }} @endif
Assign Subscription
@csrf
Private plans are only visible to admins and can be assigned manually.
Quick select: 7 | 30 | 90 | 180 | 365 days
@if($business->subscription_plan_id)
Current Subscription
{{ $business->subscriptionPlan->name ?? 'N/A' }}
@if($business->subscription_status === 'active') Active @elseif($business->subscription_status === 'expired') Expired @elseif($business->subscription_status === 'cancelled') Cancelled @else {{ ucfirst($business->subscription_status) }} @endif
{{ $business->subscription_start_date ? $business->subscription_start_date->format('M d, Y') : 'N/A' }}
{{ $business->subscription_end_date ? $business->subscription_end_date->format('M d, Y') : 'N/A' }}
@endif
Admin Actions
@if($business->status === 'pending') {{-- verify business--}} Verify Business @else @endif View Owner Profile
@endsection @push('scripts') @endpush