@extends('layouts.app') @section('title') Dealer Vouchers @stop @section('breadcrumb') @stop @section('content')

Dealers

Add New

@foreach($list as $l) @endforeach
# Name Description balance Action
{{$count++}} {{$l->name}} {{$l->description}} @if($balance[$l->id] < 0 ) ({{number_format(abs($balance[$l->id]))}}) @elseif($balance[$l->id] > 0 ) {{number_format($balance[$l->id])}} @else - @endif View Edit
@foreach($allRebates as $rebate) @endforeach
# Dealer Name Property Net amount Tax amount Payment Method Description Date Action
{{$count++}} {{$rebate->dealer? $rebate->dealer->name : ''}} @if($rebate->property) @if($rebate->property->inventory) {{$rebate->property->inventory->unit_number}} @endif @endif {{number_format($rebate->amount)}} {{number_format($rebate->tax_amount)}} @if($rebate->payment_method) @if($rebate->payment_method == 1) CASH @else BANK TRANSFER @endif @endif {{$rebate->description}} {{date('d-m-Y', strtotime($rebate->date)) }} @permission('create-voucher') @endpermission
{{csrf_field()}}
@foreach($pendingRebateBookings as $rebate) @endforeach
# Unit # Dealer Code Dealer Name Net amount Rebate Amount Date Action
{{$count++}} @if($rebate->property) @if($rebate->property->inventory) {{$rebate->property->inventory->unit_number}} @endif @endif {{$rebate->dealer? $rebate->dealer->code : ''}} {{$rebate->dealer? $rebate->dealer->name : ''}} @if($rebate->property) {{number_format($rebate->property->net_pay)}} @endif {{number_format($rebate->amount)}} {{date('d-m-Y', strtotime($rebate->created_at)) }}    @permission('create-voucher') @endpermission
{{csrf_field()}}
@permission('create-voucher') @endpermission
{{csrf_field()}}
@foreach($allEntries as $entry) @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) @else @endif @endforeach
Type Checked Posted Date Entry No. ADJ Account Memo Debit/Credit Action
CRV-{{$entry->voucher_no}}BRV-{{$entry->voucher_no}}CPV-{{$entry->voucher_no}}BPV-{{$entry->voucher_no}}JV-{{$entry->voucher_no}}@if($entry->is_check) @else @endif @if($entry->is_post) @else @endif {{date('d/m/Y', strtotime($entry->date))}} {{$entry->entry_no}} @if($entry->adjusting_entry) @endif {{$entry->account ? $entry->account->name : ''}} {{$entry->memo}} {{number_format($totalAmount[$entry->entry_no])}} View @if(!$entry->is_approved)

Approve @endif
{{csrf_field()}}
@stop @section('js') @stop