@extends('layouts.master') @section('css') @endsection @section('title') Payment @endsection @section('content')
@isset($accountingVoucher) Edit Payment @else Add Payment @endisset
@isset($accountingVoucher)
@method('put') @else @endisset @csrf @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->discount_in_receipt_payment)
@php if(isset($accountingVoucher)) { $exist = \App\Models\AccountingVoucher::where('cash_discount_id', $accountingVoucher->id)->first(); if($exist) { $amount = $exist->amount; } } @endphp
@endif @if (Auth::user()->company_profile->use_bill_wise_receipt)
@endif
Report
{{-- Print Modal --}} @endsection @section('script') @endsection