@extends('layouts.app') @section('page-pretitle', __('Management')) @section('page-title', __('Quotations')) @section('content')
@if ($errors->any()) @endif @if (session('success')) @endif

{{ __('Search Filter') }}

@include('asset.entries') @if(auth()->user()->role === 'admin')
@if (auth()->user()->role == 'admin') {{ __('Add') }} {{ __('Quotation') }} @endif
@endif
@forelse ($quotations as $quotation) @empty @endforelse
# {{ __('Quotation No.') }} {{ __('Client Name') }} {{ __('Date') }} {{ __('Total (RM)') }} {{ __('Actions') }}
{{ $loop->iteration + ($quotations->currentPage() - 1) * $quotations->perPage() }} {{ $quotation->quotation_number }} {{ $quotation->client_name ?? '-' }} {{ \Carbon\Carbon::parse($quotation->date)->format('d/m/Y') }} RM {{ number_format($quotation->total, 2) }}
{{ __('No quotations found.') }}
@if ($quotations->hasPages()) @endif
@endsection @section('script') @endsection