@extends('layouts.master') @section('css') @endsection @section('title') Purchase Return @endsection @section('content') @isset($accountingVoucher) @method('put') @else @endisset @csrf @isset($accountingVoucher) Edit Purchase Return @else Add Purchase Return @endisset 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 }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Type Select voucher type Voucher Date Purchase Return Ledger (Cr) Select ledger Party (Dr) Select ledger @isset($accountingVoucher) {{ $accountingVoucher->debitLedger->name }} @endisset Tax Type @isset($accountingVoucher) IntraState InterState (IGST) @else IntraState InterState (IGST) @endisset Stock Location Choose stock location Cost Center Select Cost Center @foreach ($costCenters as $costCenter) cost_center_id == $costCenter->id ? 'selected' : '') : '' }}> {{ $costCenter->name }} @endforeach Remarks {{ isset($accountingVoucher) ? $accountingVoucher->remarks : '' }} Report Go Back Add Items Item Variant MRP Qty Unit Price Gross Value Disc% Taxable Value Total Tax CGST SGST IGST CESS Total @isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp Select item {{ $accountingVoucherItem->stockItem->name }} Select Variant @foreach ($accountingVoucherItem->stockItem->variants as $variant) variant_id == $variant->id ? 'selected' : '' }}> {{ $variant->name }} @endforeach @foreach ($accountingVoucherItem->units as $unit) unit_id == $unit->id ? 'selected' : '' }}> {{ $unit->symbol }} @endforeach {{-- unit_id == $accountingVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $accountingVoucherItem->unit->symbol }} --}} @php $tabIndex = $tabIndex + 10; @endphp @endforeach @endif @endisset {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }} Discount : Freight/Etc : Round Off : {{ isset($accountingVoucher) ? $accountingVoucher->round_off : '0.00' }} Grand Total : {{ isset($accountingVoucher) ? $accountingVoucher->amount : '0.00' }} Add Submit {{-- Print Modal --}}