@extends('layouts.master') @section('page_title', 'Edit Billing') @section('title', 'Edit Billing') @section('main_item', 'Edit Billing') @section('content') @if (session('pdf')) @endif
Add
business_location != '1') style="display: none" @endif>
@csrf @method('PUT')
@foreach ($sale->saleItems as $count => $item) @php // Fetch the stock using the stock_id from the SaleItem $stock = App\Stock::find($item->stock_id); // Fetch the attribute values if stock exists if ($stock) { $attribute_value = App\AttributeValue::find($stock->attribute_value_id); $second_attribute_value = App\AttributeValue::find($stock->second_attribute_value_id); } @endphp @endforeach
Image Product Quantity Selling Price Line Total
@php $product = App\Product::find($item->product_id); if (!empty($product->parent_product_id)) { $product = App\Product::find($product->parent_product_id); } @endphp @if (!empty($product->image)) @else @endif {{ $item->product->product_name }} @if ($setting->show_sub_category) | @php $product_sub_category = DB::table('product_has_subcategories') ->where('product_id', $item->product->id) ->first(); $sub_category = $product_sub_category ? \App\SubCategory::find($product_sub_category->sub_category_id) : null; @endphp @if (isset($sub_category) && $sub_category) {{ $sub_category->sub_category_name }} @else (N/A) @endif @endif @if ($stock && $attribute_value && $attribute_value->value) | {{ $attribute_value->value }} @if ($second_attribute_value && $second_attribute_value->value) | {{ $second_attribute_value->value }} @endif @else (single) @endif {{ $item->sale_line_total }}
{{-- reset button --}}
{{-- category filter --}}
{{-- sub category filter --}}
{{-- attribute filter --}}
{{-- unit filter --}}

Add Payment

@error('invoice_total') @enderror
@php $percentage = 0; if ($sale->discount_type == 'fixed') { $percentage = $sale->invoice_discount; } else { if ($sale->invoice_discount != 0) { $percentage = ($sale->invoice_discount / $sale->invoice_total) * 100; } } @endphp
@endsection @section('scripts') @endsection