@extends('admin.MainComponent') @section('content')

Provider Details

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
  • Name: {{ $provider->name }}
  • Email: {{ $provider->email }}
  • Phone: {{ $provider->phone }}
  • Account Status: @if($provider->status == 'pending') Pending Approval @elseif($provider->status == 'active') Active @elseif($provider->status == 'rejected') Rejected @elseif($provider->status == 'blocked') Blocked @endif
  • Location: {{ $provider->city ?? 'Not specified' }}
  • Registered: {{ $provider->created_at->format('Y-m-d') }}
  • Provider Type: {{ ucfirst($provider->type) }}
  • @if($provider->approved_at)
  • Approved: {{ \Carbon\Carbon::parse($provider->approved_at)->format('Y-m-d') }}
  • @endif
@if($provider->avatar) Provider Profile @else
{{ substr($provider->name, 0, 1) }}
@endif
@if($provider->status_message)
Status Message:
{{ $provider->status_message }}
@endif @if($provider->bio)
Bio:

{{ $provider->bio }}

@endif
Documents
@if($provider->type == 'personal')
ID Card

Personal identification document

@if($provider->id_card) View @else Not uploaded @endif
@else
Commercial Register

Company registration document

@if($provider->commercial_register) View @else Not uploaded @endif
@endif
Actions
@if($provider->status == 'pending')
@csrf
@endif @if($provider->status == 'active') @endif @if($provider->status == 'blocked')
@csrf
@endif
@endsection