@extends('layouts.master') @section('css') @endsection @section('title') Receipt @endsection @section('content')
@isset($accountingVoucher)
@method('put') @else @endisset @csrf
@isset($accountingVoucher) Edit Receipt @else Add Receipt @endisset
@if (auth()->user()->staff == null)
@endif
@isset($accountingVoucher) @if (str_contains($accountingVoucher->voucher_number, '-')) @php $explode = explode('-', $accountingVoucher->voucher_number); $voucherNumber = end($explode); $prefix = array_pop($explode); $prefix = implode('-', $explode); @endphp {{ $prefix }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset
@if (Auth::user()->company_profile->use_bill_wise_receipt) @endif @isset($accountingVoucher) @foreach ($accountingVoucher->accountingVoucherLedgers as $key => $accountingVoucherLedger) @if (Auth::user()->company_profile->use_bill_wise_receipt) @endif @endforeach @endisset
Sl No Particulars Debit CreditAgainst RefAction
{{ $key + 1 }}
dr_or_cr == 'Cr' ? 'disabled' : '' }}> dr_or_cr == 'Dr' ? 'disabled' : '' }}>
Total {{ isset($accountingVoucher) ? $accountingVoucher->accountingVoucherLedgers->where('dr_or_cr', 'Dr')->sum('amount') : 0.0 }} {{ isset($accountingVoucher) ? $accountingVoucher->accountingVoucherLedgers->where('dr_or_cr', 'Cr')->sum('amount') : 0.0 }}

@endsection @section('script') @endsection