@include('admin.flash-message') @php $originalPrice = (float) ($record->price ?? $record->amount ?? 0); $discountPercentage = (float) ($record->discount_percentage ?? 0); $discountAmount = round(($originalPrice * $discountPercentage) / 100, 2); $sellingPrice = round($originalPrice - $discountAmount, 2); $physicianFee = (float) ($record->physician_fee ?? 0); $statusLabel = $record->status == '1' ? 'Active' : 'Inactive'; $statusClass = $record->status == '1' ? 'success' : 'danger'; $imagePath = $record->image ?? $record->image_url; @endphp
Service Detail
{{ $record->title }}

{{ $record->title }}

{{ $record->description }}

${{ number_format($originalPrice, 2) }}

{{ number_format($discountPercentage, 2) }}%

${{ number_format($discountAmount, 2) }}

${{ number_format($sellingPrice, 2) }}

${{ number_format($physicianFee, 2) }}

{{ $statusLabel }}

{{ date(config('constants.ADMIN_DATE_FORMAT'), strtotime($record->created_at)) }}

{{ date(config('constants.ADMIN_DATE_FORMAT'), strtotime($record->updated_at)) }}

@include('admin.footer')