@extends('backend.layouts.master') @section('page-title', 'POS') @push('css') @endpush @section('invoice') @if ($userBranchId == 1) @if ($filterBranchId != null)
@csrf
@if (auth()->user()->branch_id == 1) @else @endif

{{-- Discount --}}
Product Size Quantity Rate Total Action
Grand Total
Discount
Pay Now
@include('backend.pages.invoice.payment-modal')
@forelse($products as $product) @if ($product->is_service == 0) @php $stock_qty = product_stock($product); $rtn = App\Models\ReturnItem::where( 'product_id', $product->id, )->sum('main_qty'); @endphp
product
{{ $product->name }}
{{ $product->selling_price }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }}
Stock : {{ $stock_qty }}
@endif @empty
@endforelse
@if (env('APP_SERVICE') == 'yes')

Services

{{-- @dd($products) --}} @forelse($products as $product) {{-- @php $stock_qty = product_stock($product); @endphp --}} @if ($product->is_service == 1)
product
{{ $product->name }}
{{ $product->selling_price }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }}
@endif @empty
@endforelse
@endif
@else

Please Select Branch

@endif @else
@csrf
@if (auth()->user()->branch_id == 1) @else @endif

{{-- Discount --}}
Product Size Quantity Rate Total Action
Grand Total
Discount
Pay Now
@include('backend.pages.invoice.payment-modal')
@forelse($products as $product) @if ($product->is_service == 0) @php $stock_qty = product_stock($product); $rtn = App\Models\ReturnItem::where('product_id', $product->id)->sum( 'main_qty', ); @endphp
product
{{ $product->name }}
{{ $product->selling_price }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }}
Stock : {{ $stock_qty }}
@endif @empty
@endforelse
@if (env('APP_SERVICE') == 'yes')

Services

{{-- @dd($products) --}} @forelse($products as $product) @if ($product->is_service == 1)
product
{{ $product->name }}
{{ $product->selling_price }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }}
@endif @empty
@endforelse
@endif
@endif {{-- Add Modal --}}
@csrf @if (auth()->user()->branch_id == 1) @foreach ($allBranch as $data) @endforeach @endif
@endsection @push('js') @endpush