@php use \Carbon\Carbon; use App\Models\GlobalSetting; $addProposalPermission = user()->permission('add_lead_proposals'); $editProposalPermission = user()->permission('edit_lead_proposals'); $addInvoicePermission = user()->permission('add_invoices'); $deleteProposalPermission = user()->permission('delete_lead_proposals'); $viewProposalPermission = user()->permission('view_lead_proposals'); @endphp
@if ($addProposalPermission == 'all' || $addProposalPermission == 'added')
@endif
@if ($viewProposalPermission == 'all' || $viewProposalPermission == 'added') @lang('modules.lead.proposal') @lang('app.number') @lang('app.total') @lang('app.date') @lang('modules.estimates.validTill') @lang('app.status') @lang('app.action') @forelse ($proposals as $proposal) {{ $proposal->proposal_number }} {{ currency_format($proposal->total, $proposal->currencyId) }} {{ Carbon::parse($proposal->created_at)->translatedFormat(company()->date_format) }} {{ Carbon::parse($proposal->valid_till)->translatedFormat(company()->date_format) }} @if ($proposal->status == 'waiting') @lang('app.waiting') @elseif ($proposal->status == 'accepted') @lang('app.accepted') @elseif ($proposal->status == 'declined') @lang('app.declined') @endif @if (!$proposal->send_status) @lang('modules.invoices.notSent') @endif @empty @endforelse @endif