@php
use Carbon\Carbon;
@endphp
@extends('layouts.admin-layout')
@section('title', 'Subscription ')
@section('content')
{{-- @php
$decode = json_decode($subscription_detail->content,true)
@endphp --}}
- Name:
-
{{ $subscription_detail->user->first_name ?: '' }}
+ {{ $subscription_detail->user->phone_number ?: '' }}
-
Date:
{{ $subscription_detail->created_at ? Carbon::parse($subscription_detail->created_at)->format('d/m/Y') : '' }}
-
Price:
{{ $subscription_detail->package->price ?? '' }}
- Package
Name:{{ $subscription_detail->package->name }}
-
Signature:
| Model |
VIN Number |
Color |
Address |
License |
Owner Name |
@php
$vehicles = [];
for ($i = 1; $i <= 10; $i++) {
if (!empty($data["vic{$i}_model"])) {
$vehicles[] = [
'model' => $data["vic{$i}_model"] ?? '',
'vin' => $data["vic{$i}_vin"] ?? '',
'color' => $data["vic{$i}_color"] ?? '',
'address' => $data["vic{$i}_address"] ?? '',
'license' => $data["vic{$i}_license"] ?? '',
'owner_name' => $data["vic{$i}_own_name"] ?? '',
];
}
}
@endphp
@if (count($vehicles) > 0)
@foreach ($vehicles as $vehicle)
| {{ $vehicle['model'] }} |
{{ $vehicle['vin'] }} |
{{ $vehicle['color'] }} |
{{ $vehicle['address'] }} |
{{ $vehicle['license'] }} |
{{ $vehicle['owner_name'] }} |
@endforeach
@else
| No vehicle data found |
@endif
@endsection