@extends('layouts.app') @section('title', 'Credit Debit Adjustment') @push('css') @endpush @section('content')

Credit Debit Note

@include('payment.customerOverview')
Credit Debit Note
@method('PUT') @csrf
Type
@foreach(\App\Models\Traits\Enum\TransactionType::cases() as $type)
type->value) == $type->value) @class(['form-check-input', 'is-invalid' => $errors->has('type')])>
@endforeach @error('type') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
$errors->has('amount')])> @error('amount') {{ $message }} @enderror
@php($canManageCategory = auth()->user()?->can('manage-credit-debit-note'))
@unless ($canManageCategory) Category is managed by administrators. @endunless @error('category') {{ $message }} @enderror
{{--
--}} {{--
--}} {{-- --}} {{-- Credit or Debit Notes apply to the selected invoice only. To apply them to future invoices, set an expiry date.--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- @error('expires_at')--}} {{-- {{ $message }}--}} {{-- @enderror--}} {{--
--}} {{--
--}}
@can('approve-credit-debit-note')
@method('PUT') @csrf
Approval
@if ($creditDebitNote->isApproved())
This Credit Debit Note has been approved and can no longer be changed.
@endif
@error('status') {{ $message }} @enderror
{{-- Who approved or rejected this note, and when. Stamped on the note itself so either decision is auditable without the activity log. Category is edited on the note details card above. --}}

{{ $creditDebitNote->decider?->name ?? '-' }}

{{ $creditDebitNote->decided_at?->format('d/m/Y \- H:i') ?? '-' }}

@unless ($creditDebitNote->isApproved()) @endunless
Season Request
@forelse ($seasonRequests as $seasonRequest) @empty @endforelse
Site Season Parking Type Request Type Attachment
{{ $seasonRequest->site->name ?? '-' }} {{ $seasonRequest->seasonType->name ?? '-' }} {{ $seasonRequest->action?->label() ?? $seasonRequest->action?->value ?? '-' }} @forelse ($seasonRequest->getMedia($seasonRequest->action->media()) as $media) {{ $media->file_name }}
@empty -- @endforelse
No approved season requests for this cardholder
@endcan
@endsection