@extends('layouts.master') @section('css') @endsection @section('title') Trash Voucher @endsection @section('content')

TRASH VOUCHER

Go Back
VOUCHER TYPE

{{ $voucher->voucherType->name }}

VOUCHER NUMBER

{{ $voucher->voucher_number }}

VOUCHER DATE

{{ \Carbon\Carbon::parse($voucher->voucher_date)->format('d M Y') }}

Credit (Cr)

{{ $voucher->creditLedger?->name }}

Debit (Dr)

{{ $voucher->debitLedger?->name }}

PRICE SLAB

{{ $voucher->priceSlab->name ?? '--' }}

STOCK LOCATION

{{ $voucher->stockLocation->name ?? '--' }}

REMARKS

{{ $voucher->remarks ?? '--' }}

COST CENTER

{{ $voucher->costCenter->name ?? '--' }}

ENTERED BY

{{ $voucher->user->name ?? '--' }}

DELETED BY

{{ $voucher->deletedBy->name ?? '--' }}

@if ($voucher->customer)
Customer Name

{{ $voucher->customer->name ?? '--' }}

Customer Mobile

{{ $voucher->customer->mobile ?? '--' }}

@endif
@if ($voucher->items->count() > 0)

ITEMS

@php $voucherItems = $voucher->items; @endphp @foreach ($voucherItems as $item) @endforeach
Item MRP Qty Unit Price Price (Inc GST) Gross Value Dis % Taxable Value Gst % CGST SGST IGST CESS Total
{{ $item->stockItem->name }} {{ $item->stockItem->getMrp($voucher->voucher_date) }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ $item->price }} {{ $item->price_inc_tax }} {{ $item->gross_value }} {{ $item->disc_percentage }} {{ $item->taxable_value }} {{ $item->gst_per }} {{ $item->cgst }} {{ $item->sgst }} {{ $item->igst }} {{ $item->cess }} {{ $item->total }}
Total {{ $voucherItems->sum('gross_value') }} {{ $voucherItems->sum('taxable_value') }} {{ $voucherItems->sum('cgst') }} {{ $voucherItems->sum('sgst') }} {{ $voucherItems->sum('total') }}
@endif

Associated Ledger Accounts

@foreach ($voucher->details as $voucherDetail) @endforeach
Account Name Amount
{{ $voucherDetail->ledger->name }} {{ $voucherDetail->amount }} {{ $voucherDetail->dr_or_cr }}
@endsection @section('script') @endsection