@php
$templateNames = [
1 => 'Simple Contact',
2 => 'Executive Profile',
3 => 'Clean Canvas',
4 => 'Professional',
5 => 'Corporate Connect',
6 => 'Modern Edge',
7 => 'Business Beacon',
8 => 'Corporate Classic',
9 => 'Corporate Identity',
10 => 'Pro Network',
11 => 'Portfolio',
12 => 'Gym 2',
13 => 'Hospital 2',
14 => 'Event Management 2',
15 => 'Salon 2',
16 => 'Lawyer 2',
17 => 'Programmer 2',
18 => 'CEO/CXO 2',
19 => 'Fashion Beauty 2',
20 => 'Culinary Food Services 2',
21 => 'Social Media 2',
22 => 'Dynamic vCard 2',
23 => 'Consulting Services 2',
24 => 'School Templates 2',
25 => 'Social Services 2',
26 => 'Retail E-commerce 2',
27 => 'Pet Shop 2',
28 => 'Pet Clinic 2',
29 => 'Marriage 2',
30 => 'Taxi Service 2',
31 => 'Handyman Services 2',
32 => 'Interior Designer 2',
33 => 'Musician 2',
34 => 'Photographer 2',
35 => 'Real Estate 2',
36 => 'Travel Agency 2',
37 => 'Flower Garden 2',
38 => 'Architecture',
39 => 'Gym 1',
40 => 'Hospital 1',
41 => 'Event Management 1',
42 => 'Salon 1',
43 => 'Lawyer 1',
44 => 'Programmer 1',
45 => 'CEO/CXO 1',
46 => 'Fashion Beauty 1',
47 => 'Culinary Food Services 1',
48 => 'Social Media 1',
49 => 'Dynamic vCard 1',
50 => 'Consulting Services 1',
51 => 'School Templates 1',
52 => 'Social Services 1',
53 => 'Retail E-commerce 1',
54 => 'Pet Shop 1',
55 => 'Pet Clinic 1',
56 => 'Marriage 1',
57 => 'Taxi Service 1',
58 => 'Handyman Services 1',
59 => 'Interior Designer 1',
60 => 'Musician 1',
61 => 'Photographer 1',
62 => 'Real Estate 1',
63 => 'Travel Agency 1',
64 => 'Flower Garden 1',
];
// Create pairs of templates
$templatePairs = [
39 => 12,
40 => 13,
41 => 14,
42 => 15,
43 => 16,
44 => 17,
45 => 18,
46 => 19,
47 => 20,
48 => 21,
49 => 22,
50 => 23,
51 => 24,
52 => 25,
53 => 26,
54 => 27,
55 => 28,
56 => 29,
57 => 30,
58 => 31,
59 => 32,
60 => 33,
61 => 34,
62 => 35,
63 => 36,
64 => 37,
];
// Get all template URLs
$templateUrls = getTemplateUrls();
// Create ordered array with paired templates together
$orderedTemplates = [];
$processed = [];
foreach ($templateUrls as $id => $url) {
if (in_array($id, $processed)) {
continue;
}
// Add current template
$orderedTemplates[] = $id;
$processed[] = $id;
// Check if this template has a pair
if (isset($templatePairs[$id])) {
$pairId = $templatePairs[$id];
if (isset($templateUrls[$pairId])) {
$orderedTemplates[] = $pairId;
$processed[] = $pairId;
}
}
}
@endphp
@foreach ($orderedTemplates as $id)
{{ $templateNames[$id] }}
@if ($id == 22)
{{ __('messages.feature.dynamic_vcard') }}
@endif
@endforeach