@extends('layouts.master') @section('title', 'Client Quotation - ') @section('content') @php $PermissionsAdd = Auth::check() ? Auth::user()->hasFeaturePermission('client-quotations', 'add') : false; $PermissionsEdit = Auth::check() ? Auth::user()->hasFeaturePermission('client-quotations', 'edit') : false; $PermissionsDelete = Auth::check() ? Auth::user()->hasFeaturePermission('client-quotations', 'delete') : false; $PermissionsPrint = Auth::check() ? Auth::user()->hasFeaturePermission('client-quotations', 'print') : false; @endphp

Client Quotation Management

{{ isset($quotation) ? 'Edit Quotation' : 'Create New Quotation' }}
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@method(isset($quotation) ? 'PUT' : 'POST') @csrf
@error('client_id')
{{ $message }}
@enderror If this is a walk-in request, leave dropdown empty and enter client name at the right.
@error('client_name')
{{ $message }}
@enderror
@if(!isset($quotation)) Next quotation number: {{ $nextQuotationNumber ?? 'QUO-' . now()->format('Y') . '-0001' }} @endif @error('quotation_date')
{{ $message }}
@enderror
Services
# Description * Quantity Price Estimate *
Total Amount: $0.00
Cancel
Existing Quotations
@foreach ($clientQuotations as $quotation) @endforeach
Quotation # Client Date Status Actions
{{ $quotation->quotation_number }} {{ optional($quotation->client)->full_name ?? optional($quotation->client)->client_name ?? $quotation->client_name ?? 'N/A' }} {{ $quotation->quotation_date->format('Y-m-d') }} {{ $quotation->status }} @if($PermissionsEdit) Edit @endif @if($PermissionsAdd)
@csrf
@endif @if($PermissionsAdd)
@csrf
@endif @if($PermissionsPrint) Print @endif @if($PermissionsDelete)
@csrf @method('DELETE')
@endif
@endsection