@extends('layouts.app') @section('title', 'Approvals') @section('heading', 'Discount approvals') @section('content')

Waiting for you ({{ $pending->count() }})

@forelse ($pending as $a)
{{ $a->deal->deal_no }} · {{ $a->deal->customer->name }}

{{ $a->deal->vehicle->display_name }} {{ $a->deal->vehicle->stock_id }}

{{ ucfirst($a->level) }} level

{{ $a->discount_percent }}% off, KSh {{ number_format((float) $a->discount_amount) }}. Price after discount KSh {{ number_format((float) $a->net_price) }}. @if ($a->below_minimum)Below the minimum price.@endif @if ($a->below_cost)Below cost.@endif

Requested by {{ $a->requester?->name }}: {{ $a->reason }}

@csrf
@csrf
@empty

Nothing is waiting for your decision.

@endforelse
@if ($recent->count())

Recently decided

@endif @endsection