@extends('layouts.dashboard.superadminapp') @section('title', 'Sales Quotation Details') @section('styles') @endsection @section('content')

UEPL | Sales Quotation Details

day, 00 month 0000
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any()) @endif
Total Quotations
{{ $quotations->count() }}
Pending
{{ $quotations->where('status', 'pending')->count() }}
Approved
{{ $quotations->where('status', 'approved')->count() }}
Rejected
{{ $quotations->where('status', 'rejected')->count() }}
Sales Quotation Data Add New
@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, 20) }} @if($quotation->email)
{{ Str::limit($quotation->email, 20) }} @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
@endsection @section('scripts') @endsection