@extends('dashboard.layouts.master') @section('title', 'Business Application Details | Admin Panel') @push('after-styles') @endpush @section('content') @if(\Helper::canAccessModule('business_owner_management'))
{{-- ── Page Header ── --}}

Business Application Details

Dashboard / Business Owner Management / Application #{{ $businessOwnerData->id }}
{{-- ── Status Strip ── --}} @php $status = $businessOwnerData->admin_approval_status ?? 1; $statusMap = [ 1 => ['label'=>'Pending', 'strip'=>'pending', 'pill'=>'pill-pending'], 2 => ['label'=>'Approved', 'strip'=>'approved', 'pill'=>'pill-approved'], 3 => ['label'=>'Rejected', 'strip'=>'rejected', 'pill'=>'pill-rejected'], 4 => ['label'=>'Suspended', 'strip'=>'suspended', 'pill'=>'pill-suspended'], 5 => ['label'=>'Under Review', 'strip'=>'under-review', 'pill'=>'pill-under-review'], ]; $si = $statusMap[$status] ?? $statusMap[1]; @endphp
Application Status:  {{ $si['label'] }} @if($businessOwnerData->admin_approved_at) — {{ \Carbon\Carbon::parse($businessOwnerData->admin_approved_at)->format('d M Y, H:i') }} @endif
@if($businessOwnerData->reviewer_name) Reviewed by: {{ $businessOwnerData->reviewer_name }} @endif
@if($status == 3 && $businessOwnerData->admin_rejection_reason)
cancel Rejection Reason: {{ $businessOwnerData->admin_rejection_reason }}
@endif @if($status == 5 && $businessOwnerData->review_notes)
rate_review Review Notes: {{ $businessOwnerData->review_notes }}
@endif @if($status == 4)
block This business is currently SUSPENDED @if($businessOwnerData->suspension_reason)

Suspension Reason: {{ $businessOwnerData->suspension_reason }}

@endif Suspended businesses are hidden from users, cannot create/redeem offers, and cannot issue loyalty points. All existing data is retained for audit purposes.
@endif {{-- ═══════════════════════════════════════ SECTION 1 — PERSONAL INFORMATION ════════════════════════════════════════ --}}
person
Personal Information
{{-- Name --}}
Full Name
{{-- Email --}}
Email Address
{{-- Contact Number --}}
Contact Number
{{-- Gender --}}
Gender
@php $gender = 'N/A'; if($businessOwnerData->gender_id == 1) $gender = 'Male'; elseif($businessOwnerData->gender_id == 2) $gender = 'Female'; elseif($businessOwnerData->gender_id == 3) $gender = 'Other'; @endphp
{{-- Date of Birth --}}
Date of Birth
{{-- Nationality --}}
Nationality
{{-- ═══════════════════════════════════════ SECTION 2 — BUSINESS INFORMATION ════════════════════════════════════════ --}}
business
Business Information
{{-- Business Name --}}
Business Name
{{-- Category --}}
Business Category
{{-- Owner Name --}}
Owner Name (Contact Person)
{{-- Number of Business Owned --}}
Number of Businesses Owned
{{-- Number of Branches --}}
Number of Branches
{{-- Business Phone --}}
Business Phone
{{-- Business Email --}}
Business Email
{{-- 9-digit code (Pincode) --}}
9-digit Code (Pincode)
{{-- Business Description --}}
Business Description
{{-- ═══════════════════════════════════════ SECTION 3 — LOCATION DETAILS ════════════════════════════════════════ --}}
location_on
Location Details
{{-- City --}}
City
{{-- State --}}
State
{{-- Address Line 1 --}}
Address Line 1
{{-- Address Line 2 --}}
Address Line 2
{{-- Latitude --}}
Latitude
{{-- Longitude --}}
Longitude
{{-- ═══════════════════════════════════════ SECTION 4 — MEDIA SECTION ════════════════════════════════════════ --}}
perm_media
Media Section
{{-- Business Logo --}}
Business Logo
@if($businessOwnerData->logo) @php $logoUrl = asset('storage/business_owner/' . $businessOwnerData->logo); @endphp Logo @else store No logo uploaded @endif
{{-- Cover Photo --}}
Cover Photo
@if($businessOwnerData->cover_photo) @php $coverUrl = asset('storage/business_owner/' . $businessOwnerData->cover_photo); @endphp Cover @else
panorama No cover photo uploaded
@endif
{{-- ═══════════════════════════════════════ SECTION 5 — VERIFICATION DOCUMENTS ════════════════════════════════════════ --}}
verified_user
Verification Documents
{{-- CR Certificate Number - Displayed as field first --}}
CR Certificate Number
{{-- National ID Front --}}
National ID Front
@if($businessOwnerData->national_id_front) @php $nif = $businessOwnerData->national_id_front; $ext = strtolower(pathinfo($nif, PATHINFO_EXTENSION)); $isImg = in_array($ext, ['jpg','jpeg','png','gif','webp']); $url = asset('storage/business_owner/' . $nif); @endphp @if($isImg) ID Front @else picture_as_pdf {{ $nif }} @endif
visibility View @if(\Helper::checkPermission('business_owner_management', 'update')) @endif
@else badge Not uploaded @endif
{{-- National ID Back --}}
National ID Back
@if($businessOwnerData->national_id_back) @php $nib = $businessOwnerData->national_id_back; $ext = strtolower(pathinfo($nib, PATHINFO_EXTENSION)); $isImg = in_array($ext, ['jpg','jpeg','png','gif','webp']); $url = asset('storage/business_owner/' . $nib); @endphp @if($isImg) ID Back @else picture_as_pdf {{ $nib }} @endif
visibility View @if(\Helper::checkPermission('business_owner_management', 'update')) @endif
@else badge Not uploaded @endif
{{-- CR Certificate File --}}
CR Certificate File
@if($businessOwnerData->cr_certificate_file) @php $ccf = $businessOwnerData->cr_certificate_file; $ext = strtolower(pathinfo($ccf, PATHINFO_EXTENSION)); $isImg = in_array($ext, ['jpg','jpeg','png','gif','webp']); $url = asset('storage/business_owner/' . $ccf); @endphp @if($isImg) CR Cert @else picture_as_pdf {{ $ccf }} @endif
visibility View @if(\Helper::checkPermission('business_owner_management', 'update')) @endif
@else description Not uploaded @endif
{{-- ═══════════════════════════════════════ SECTION 4 — ACTIONS ════════════════════════════════════════ --}} @if(\Helper::checkPermission('business_owner_management', 'approve') || \Helper::checkPermission('business_owner_management', 'reject') || \Helper::checkPermission('business_owner_management', 'update') || \Helper::checkPermission('business_owner_management', 'active'))
admin_panel_settings Actions
{{-- Approve --}} @if($status != 2 && $status != 4 && \Helper::checkPermission('business_owner_management', 'approve'))
Business owner receives a welcome email with login credentials.
@endif {{-- Reject --}} @if($status != 3 && $status != 4 && \Helper::checkPermission('business_owner_management', 'reject'))
Business owner receives rejection email with the reason.
@endif {{-- Hold on Review --}} @if($status != 5 && $status != 4 && \Helper::checkPermission('business_owner_management', 'update'))
Place application under review for further investigation.
@endif {{-- Suspend / Reactivate --}} @if($status == 2 && \Helper::checkPermission('business_owner_management', 'active'))
Suspend this business from the platform.
@elseif($status == 4 && \Helper::checkPermission('business_owner_management', 'active'))
Restore full access and visibility on the platform.
@endif
{{-- Suspension Rules Info Box --}}
info Business Suspension Rules
  • Suspended businesses are hidden from user discovery across the platform.
  • Cannot create or redeem offers while suspended.
  • Cannot issue loyalty points to users.
  • All existing data (offers, points history, transactions) is retained for audit purposes.
  • Suspended businesses may be reactivated by admin at any time.
@endif
{{-- end box-body --}}
{{-- end box --}}
{{-- ═══════════════════════════════════════ MODALS ════════════════════════════════════════ --}} {{-- Approve --}} {{-- Reject --}} {{-- Hold --}} {{-- Suspend --}} {{-- Reactivate --}} {{-- Document viewer --}} @else @endif @push('after-scripts') @endpush @endsection