@extends('layouts.master') @section('css') @endsection @section('title') Sales @endsection @section('content')
@isset($accountingVoucher)
@method('put') @else @endisset @csrf
@isset($accountingVoucher) Edit Sales @else Add Sales @endisset
@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 ($companyProfile->show_cost_center == 1)
@endif @if ($companyProfile->show_shipping_address == 1)
@endif @if ($companyProfile->show_price_slab == 1)
@endif @if ($companyProfile->show_customer_details)
company_profile->customer_details_required == 1) required @endif>
company_profile->customer_details_required == 1) required @endif>
@endif
@if ($companyProfile->customer_source == 1) @endif
@if (isset($accountingVoucher) && $accountingVoucher->otp != null && $accountingVoucher->approval_status != 'Approved')
@endif
Report
@isset($accountingVoucher) @endisset
Add Items
@isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp @php $tabIndex = $tabIndex + 5; @endphp @endforeach @endif @endisset
SN    Item Stock Unit Qty Price Disc% Total
{{ $key }}
---
sale_executive_price_change == 0 ? 'readonly' : '' }}>
{{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }}
Discount :
Additional Discount :
Freight/Etc :
Round Off :
{{ isset($accountingVoucher) ? $accountingVoucher->round_off : '0.00' }}
Grand Total :
{{ isset($accountingVoucher) ? $accountingVoucher->amount : '0.00' }}
* Stock is based on the base unit of the item
{{-- Modal --}} {{-- Modal --}} {{-- Estimate Modal --}} @endsection @section('script') @endsection