@extends('layouts.master') @section('css') @endsection @section('title') Purchase @endsection @section('content') @method('put') @csrf Edit Purchase Voucher Number @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 Voucher Type Select voucher type Voucher Date Party (Cr) Select ledger Tax Type IntraState InterState (IGST) Stock Location Choose stock location Remarks {{ $accountingVoucher->remarks }} Report Go Back Add Ledgers Ledger Qty Price Gross Value Disc% Taxable Value CGST SGST IGST CESS Total @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 {{ $capitalGoods->sum('total') }} TCS : tcs > 0.0 ? 'checked' : '' }} id="tcs"> {{ $accountingVoucher->tcs }} Discount : Round Off : {{ $accountingVoucher->round_off }} Grand Total : {{ $accountingVoucher->amount }} Add Submit {{-- Print Modal --}}