@extends('backEnd.layouts.master') @section('title','CRM Reminder') @push('styles') @endpush @section('content')

CRM Reminder

{{-- Status Tabs --}}
@foreach([ ['no_status','No Status','bg-secondary'], ['contact', 'Contact', 'bg-info'], ['follow_up','Follow-Up','bg-warning text-dark'], ['closed', 'Closed', 'bg-success'], ['renew_again','Renew Again','bg-purple text-white'], ['all', 'All', 'bg-dark'], ] as [$k,$l,$c]) {{ $l }} {{ $counts[$k=='all'?'all':$k] }} @endforeach
@forelse($reminders as $r) @php $order = $r->order; $firstItem = $order?->items->first(); $product = $firstItem?->product; $thumb = $product?->thumbnail; @endphp {{-- Product --}} {{-- Purchase --}} {{-- Reminder --}} {{-- Customer --}} {{-- Note --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
Product Purchase Reminder Customer Note Status Action
@if($thumb) @else
@endif
{{ $product?->name ?? ($firstItem?->product_name ?? 'Unknown Product') }}
৳{{ number_format($firstItem?->unit_price ?? 0) }}
{{ $firstItem?->size ?? 'none' }}, {{ $firstItem?->color ?? 'none' }} Qty: {{ $firstItem?->quantity ?? 1 }}
@if($order)
Ordered: {{ $order->created_at->diffForHumans() }}
Reminder: After {{ $r->reminder_days }} days
{{ $order->created_at->format('Y-M-d g:i A') }}
@else @endif
@if($r->reminder_at)
{{ $r->days_ago }}
{{ $r->reminder_at->format('Y-M-d g:i A') }}
@endif
@if($order) {{ $r->customer_name }}
{{ $r->customer_phone }}
{{ $r->customer_address }}
@endif
@if($r->note)
{{ $r->note }}
@else @endif
@if($order) @endif
No CRM reminders found.
@if($reminders->hasPages())
{{ $reminders->links() }}
@endif
{{-- CRM Note Modal --}} @endsection @push('scripts') @endpush