@extends('layouts.dashboard.superadminapp') @section('title', 'Sales Quotation List') @section('styles') @endsection @section('content') {{-- PAGE HEADER --}} {{-- KPI SUMMARY CARDS --}}
Total Quotations
{{ $quotations->count() }}
Pending
{{ $quotations->where('status', 'pending')->count() }}
Approved
{{ $quotations->where('status', 'approved')->count() }}
Rejected
{{ $quotations->where('status', 'rejected')->count() }}
{{-- QUICK ACTIONS BAR --}}
Quick Actions
New Quotation RFQs Customers
{{-- TABLE CARD --}}
Sales Quotation Data
Add Quotation
@foreach ($quotations as $index => $quotation) @endforeach
# Quotation No Date Customer Contact Product Type Grand Total Status Print Actions
{{ $index + 1 }} {{ $quotation->quotation_no }} {{ \Carbon\Carbon::parse($quotation->quotation_date)->format('d-m-Y') }} {{ Str::limit($quotation->customer->company ?? $quotation->customer_name, 22) }} @if($quotation->email)
{{ Str::limit($quotation->email, 22) }} @endif
{{ $quotation->phone ?: '-' }} {{ Str::limit($quotation->product_type, 15) ?: '-' }} ₹{{ number_format($quotation->grand_total, 2) }} @if($quotation->status == 'approved') Approved @elseif($quotation->status == 'rejected') Rejected @else Pending @endif
@if ($quotation->status === 'pending') @endif
{{-- DELETE CONFIRMATION MODAL --}} {{-- APPROVE CONFIRMATION MODAL --}} {{-- REJECT CONFIRMATION MODAL --}} {{-- TOAST CONTAINER --}}
@endsection @section('scripts') @endsection