@extends('backend.layouts.admin') @section('main-content')
Transactions
@if(request()->query->count()>0)   Reset @endif
@forelse($transactions as $row) @empty @endforelse
Sr. No. Date Booking ID/Exp ID Account Type Account Nature Payment Type DB/CR Amount
{{$loop->iteration}} @if($row instanceof App\Models\Payable) {{date('d-m-Y',strtotime($row->date))}} @else {{date('d-m-Y',strtotime($row->created_at))}} @endif @if($row instanceof App\Models\Payable) PA-{{$row->id}} @else @if($row instanceof App\Models\finance\Expense) EXP-{{ $row->id ?? '' }} @else {{ $row->uid }} @endif @endif @if( $row instanceof App\Models\finance\Expense && $row->type) {{ $row->department->name ?? '' }} - {{ $row->type->name ?? '' }} @elseif($row->type == 'booking') {{\Illuminate\Support\Str::limit($row->title??'', 40, ' ...')}} @elseif($row instanceof App\Models\Payable && $row->invoice && $row->invoice && $row->invoice->booking) {{ucfirst(str_replace( '_', ' ', $row->service_type))??''}} @elseif($row->type && $row->booking) {{ $row->booking->service_bookings->map(function ($boking) { return ucfirst(strtolower($boking->service_type)); })->unique() ->implode(', ')}} @endif @if($row instanceof App\Models\Payable) {{$row->vendor_detail->coa->getLevel3ParentHead->getLevel2ParentHead->l2_head_name??''}} @elseif($row instanceof App\Models\finance\Expense) Expense @else Asset @endif @if(isset($row->payment_method)) {{ $row->payment_method }} @elseif(isset($row->bank)) {{ Str::ucfirst($row->bank->name) }} @endif @if($row instanceof App\Models\Payable) CR @elseif($row instanceof App\Models\finance\Expense) CR @else DB @endif @if($row instanceof App\Models\Payable) {{ number_format($row->payable_amount??0)}} @else {{$row->amount? number_format($row->amount):0}} @endif
No data found
@endsection @push('scripts') @endpush