sackey cbae4564b9
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Add customer portal views for dashboard, estimates, invoices, vehicles, and work orders
- Implemented dashboard view with vehicle stats, active services, recent activity, and upcoming appointments.
- Created estimates view with filtering options and a list of service estimates.
- Developed invoices view to manage service invoices and payment history with filtering.
- Added vehicles view to display registered vehicles and their details.
- Built work orders view to track the progress of vehicle services with filtering and detailed information.
2025-08-08 09:56:26 +00:00

175 lines
10 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'AutoRepair Pro') }} - Customer Portal</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="font-sans antialiased h-full bg-gray-50">
<div class="min-h-full">
<!-- Header -->
<header class="bg-white shadow-sm border-b border-gray-200">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center py-6">
<div class="flex items-center">
<x-app-logo class="h-8 w-auto" />
<div class="ml-4">
<h1 class="text-2xl font-bold text-gray-900">Customer Portal</h1>
<p class="text-sm text-gray-600">Track your vehicle service progress</p>
</div>
</div>
</div>
</div>
</header>
<!-- Main content -->
<main class="max-w-4xl mx-auto py-16 px-4 sm:px-6 lg:px-8">
<div class="text-center">
<svg class="mx-auto h-20 w-20 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 11.172V5l-1-1z"></path>
</svg>
<h2 class="mt-6 text-3xl font-bold text-gray-900">Welcome to Our Customer Portal</h2>
<p class="mt-4 text-lg text-gray-600 max-w-2xl mx-auto">
Track your vehicle's service progress, view estimates, and stay connected with our team throughout the repair process.
</p>
</div>
<!-- Access Instructions -->
<div class="mt-16">
<div class="bg-white rounded-lg shadow-lg overflow-hidden">
<div class="px-6 py-8">
<h3 class="text-xl font-semibold text-gray-900 mb-6">How to Access Your Service Information</h3>
<div class="space-y-6">
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full">
<span class="text-blue-600 font-semibold">1</span>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg font-medium text-gray-900">Check Your Email</h4>
<p class="text-gray-600">When you drop off your vehicle, we'll send you an email with a direct link to track your service progress.</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full">
<span class="text-blue-600 font-semibold">2</span>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg font-medium text-gray-900">Follow the Link</h4>
<p class="text-gray-600">Click the "View Service Status" link in your email to access your personalized dashboard.</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full">
<span class="text-blue-600 font-semibold">3</span>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg font-medium text-gray-900">Stay Updated</h4>
<p class="text-gray-600">Monitor real-time progress, review estimates, and communicate with our service team.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Features -->
<div class="mt-16">
<h3 class="text-xl font-semibold text-gray-900 text-center mb-8">What You Can Do</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center">
<div class="mx-auto h-12 w-12 bg-green-100 rounded-lg flex items-center justify-center">
<svg class="h-6 w-6 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
</div>
<h4 class="mt-4 text-lg font-medium text-gray-900">Track Progress</h4>
<p class="mt-2 text-gray-600">See where your vehicle is in our service process with real-time updates.</p>
</div>
<div class="text-center">
<div class="mx-auto h-12 w-12 bg-blue-100 rounded-lg flex items-center justify-center">
<svg class="h-6 w-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
</svg>
</div>
<h4 class="mt-4 text-lg font-medium text-gray-900">Review Estimates</h4>
<p class="mt-2 text-gray-600">View detailed repair estimates and approve or decline work online.</p>
</div>
<div class="text-center">
<div class="mx-auto h-12 w-12 bg-purple-100 rounded-lg flex items-center justify-center">
<svg class="h-6 w-6 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path>
</svg>
</div>
<h4 class="mt-4 text-lg font-medium text-gray-900">Stay Connected</h4>
<p class="mt-2 text-gray-600">Receive notifications and communicate directly with our service team.</p>
</div>
</div>
</div>
<!-- Contact Information -->
<div class="mt-16 bg-gray-100 rounded-lg p-8">
<div class="text-center">
<h3 class="text-xl font-semibold text-gray-900 mb-4">Need Help?</h3>
<p class="text-gray-600 mb-6">If you haven't received your portal access email or need assistance, contact us:</p>
<div class="flex flex-col sm:flex-row justify-center items-center space-y-2 sm:space-y-0 sm:space-x-8">
@php $generalSettings = app(\App\Settings\GeneralSettings::class); @endphp
@if($generalSettings->shop_phone)
<a href="tel:{{ $generalSettings->shop_phone }}" class="flex items-center text-blue-600 hover:text-blue-800">
<svg class="h-5 w-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
</svg>
{{ $generalSettings->shop_phone }}
</a>
@endif
@if($generalSettings->shop_email)
<a href="mailto:{{ $generalSettings->shop_email }}" class="flex items-center text-blue-600 hover:text-blue-800">
<svg class="h-5 w-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
</svg>
{{ $generalSettings->shop_email }}
</a>
@endif
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 mt-16">
<div class="max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8">
<div class="text-center">
<p class="text-sm text-gray-600">
&copy; {{ date('Y') }} {{ $generalSettings->shop_name ?? config('app.name') }}. All rights reserved.
</p>
</div>
</div>
</footer>
</div>
</body>
</html>