@extends('admin.layout.app') @section('body')
{{-- Header + Actions --}}

Company Dealings

{{-- Export Dropdown (ADDED) --}} New Dealing
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif {{-- Filters / Search --}}
{{--
--}}
{{-- Reporting --}}
Total Amount (filtered)
{{ number_format($reportTotal, 2) }}
{{-- Table --}}
@forelse($dealings as $i => $d) @php $files = json_decode($d->attachment_document ?? '[]', true) ?: []; @endphp @empty @endforelse
# Deal Date Company Amount Notes Actions
{{ $dealings->firstItem() + $i }} {{ optional($d->deal_date)->format('Y-m-d') }} {{ optional($d->company)->name }} {{ number_format($d->amount, 2) }} {{ \Illuminate\Support\Str::limit($d->notes, 60) }}
@csrf @method('DELETE')
No dealings found.
@if ($dealings->hasPages()) @endif
{{-- Print styles (hide buttons etc.) --}} {{-- Export libs --}} @endsection