@extends('crm::emails.layout-non-tenant', [
    'subject' => 'New Model Request: ' . $modelRequest->model_name,
])

@section('content')

    <p>
        A new vehicle model has been requested:
    </p>

    <ul>
        <li><strong>Model Name:</strong> {{ $modelRequest->model_name }}</li>
        <li><strong>Make:</strong> {{ $modelRequest->make->name ?? 'Unknown' }}</li>
        @if($modelRequest->vehicle_type)
            <li><strong>Vehicle Type:</strong> {{ $modelRequest->vehicle_type }}</li>
        @endif
    </ul>

    <p><strong>Requester Details:</strong></p>
    <ul>
        <li><strong>Name:</strong> {{ $modelRequest->requested_by_name ?? 'Unknown' }}</li>
        <li><strong>Email:</strong> {{ $modelRequest->requested_by_email }}</li>
        @if($modelRequest->tenant_id)
            <li><strong>Tenant:</strong> {{ $modelRequest->tenant_id }}</li>
        @endif
    </ul>

    @if($modelRequest->reason)
        <p><strong>Reason:</strong></p>
        <p>{{ $modelRequest->reason }}</p>
    @endif

    <p>
        <a href="{{ url('/taxonomies/model-requests/edit/' . $modelRequest->id) }}"
           style="display: inline-block; padding: 12px 24px; background-color: {{ $colours['app-primary-colour'] }}; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: bold;">
            Review Request
        </a>
    </p>

@endsection
