@extends('dashboard.layouts.master') @section('title', 'Business Details | Admin Panel') @push('after-styles') @endpush @section('content')

{{ $business->business_name }}

Dashboard / Business Management / Details
Core Information
Business Name
{{ $business->business_name }}
Category
{{ $business->category->name ?? '—' }}
Current Status
@if($business->status == 'active') Active @elseif($business->status == 'inactive') Inactive @else Suspended @endif
Member Since
{{ $business->created_at->format('d M Y') }}
Location & Contact
City / Address
{{ $business->city ?? '—' }} / {{ $business->address_line_1 ?? '—' }}
Business Email / Mobile
{{ $business->business_email ?? '—' }} / {{ $business->business_mobile ?? '—' }}
Pincode
{{ $business->pincode ?? '—' }}
Owner Details
Owner Name
{{ $business->owner_name ?? $business->owner_name_user }}
Owner Email
{{ $business->owner_email ?? $business->owner_email_user }}
Owner Mobile
{{ $business->owner_mobile ?? $business->owner_phone_user }}
Account Holder
{{ $business->owner_name_user ?? '—' }}
Documents
Business Logo
@if($business->logo) Logo @else
No Logo
@endif
Cover Photo
@if($business->cover_photo) Cover @else
No Cover
@endif
National ID (Front/Back)
@if($business->national_id_front) Front @endif @if($business->national_id_back) Back @endif @if(!$business->national_id_front && !$business->national_id_back) Not Uploaded @endif
CR Certificate ({{ $business->cr_number ?? 'N/A' }})
@if($business->cr_certificate_file) View Certificate @else Not Uploaded @endif
Management Actions
@forelse($branches as $branch) @empty @endforelse
Branch Name City Address Status QR Scans Action
{{ $branch->branch_name }} {{ $branch->city }} {{ $branch->address_line_1 }} @if($branch->status == 'active') Active @else {{ ucfirst($branch->status) }} @endif {{ $branch->scan_count }}
No branches found.
Current Plan
@if($currentSubscription)
Plan: {{ $currentSubscription->plan_name }}
Price: {{ $currentSubscription->price }} SAR
Start: {{ \Carbon\Carbon::parse($currentSubscription->start_date)->format('d M Y') }}
End: {{ \Carbon\Carbon::parse($currentSubscription->end_date)->format('d M Y') }}
@else
No active subscription found.
@endif
Subscription History
@foreach($subscriptionHistory as $sh) @endforeach
Plan Name Price Duration Dates Status
{{ $sh->plan_name }} {{ $sh->price }} SAR {{ $sh->duration }} {{ $sh->duration_unit ?? 'Days' }} {{ \Carbon\Carbon::parse($sh->start_date)->format('d M Y') }} - {{ \Carbon\Carbon::parse($sh->end_date)->format('d M Y') }} {{ ucfirst($sh->status) }}
{{-- Confirmation Modals --}} @push('after-scripts') @endpush @endsection