@extends('layouts.admin') @section('title', 'Marketing Management') @section('content')

Marketing Management

Overview of alerts, contracts, documents, and rates

Total Alerts
{{ $totalAlerts }}
View Alerts
Unread Alerts
{{ $unreadAlerts }}
Filter New
Document Templates
{{ $templatesCount }}
Manage Templates
Compliance Documents
{{ $complianceDocumentsCount }}
Manage Compliance

Recent Alerts

@forelse($recentAlerts as $a) @empty @endforelse
Title Severity Triggered Actions
{{ $a->title }}
{{ $a->description }}
@php $sevMap = [ 'info' => 'bg-blue-100 text-blue-800', 'warning' => 'bg-yellow-100 text-yellow-800', 'critical' => 'bg-red-100 text-red-800' ]; @endphp {{ $a->severity }} {{ optional($a->triggered_at)->format('Y-m-d H:i') }}
@csrf
No recent alerts

Expiring Contracts (next 60 days)

@forelse($expiringContracts as $c) @empty @endforelse
Title Number End Date Actions
{{ $c->title }} {{ $c->contract_number }} {{ $c->end_date }} View
No expiring contracts

Recent Templates

    @forelse($recentTemplates as $t)
  • {{ $t->title }}
    Code: {{ $t->code }} ยท Status: {{ ucfirst($t->status) }}
    Edit
  • @empty
  • No recent templates
  • @endforelse

Rates Overview

Pricing
{{ $pricingCount }}
Manage
Discounts
{{ $discountCount }}
Manage
Zone Rates
{{ $zoneRateCount }}
Manage
@push('scripts') @endpush
@endsection