@extends('layouts.master') @section('css') @endsection @section('title') Purchase Return @endsection @section('content') @isset($accountingVoucher) @method('put') @else @endisset @csrf @isset($accountingVoucher) Edit @else Add @endisset Purchase Return Voucher Type Select voucher type Voucher Number @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 }} edit_voucher_number) @else readonly @endif> @else edit_voucher_number) @else readonly @endif> @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Date Party (Dr) Select ledger @isset($accountingVoucher) {{ $accountingVoucher->debitLedger->name }} @endisset Tax Type IntraState InterState (IGST) Stock Location Choose stock location Remarks {{ isset($accountingVoucher) ? $accountingVoucher->remarks : '' }} Report Go Back Add Ledgers Ledger Qty Price Gross Value Disc% Taxable Value CGST SGST IGST CESS Total @isset($accountingVoucher) @if (count($capitalGoods) > 0) @php $tabIndex = 0; @endphp @foreach ($capitalGoods as $key => $item) @php $key = $key + 1; @endphp Select ledger @foreach ($ledgers as $ledger) ledger_id == $ledger->id ? 'selected' : '' }}> {{ $ledger->name }} @endforeach @php $tabIndex += 5; @endphp @endforeach @endif @endisset @isset($capitalGoods) {{ $capitalGoods->sum('total') }} @endisset TCS : tcs > 0.0 ? 'checked' : '' }} @endisset id="tcs"> @isset($accountingVoucher) {{ $accountingVoucher->tcs }} @endisset Discount : Round Off : @isset($accountingVoucher) {{ $accountingVoucher->round_off }} @endisset Grand Total : @isset($accountingVoucher) {{ $accountingVoucher->amount }} @endisset Add Submit {{-- Print Modal --}}