@extends('layouts.app') @section('content')

Bill

@csrf @foreach ($cartWithDetails as $index => $item) @php $product = $item['product']; $qty = $item['qty']; @endphp

Product {{ $index + 1 }}

Name: {{ $product->name }}

Company: {{ $product->company }}

Salt: {{ $product->salt }}

Category: {{ is_array($product->categories) ? implode(', ', $product->categories) : $product->categories }}

Qty: {{ $qty }}

Retail Price: {{ $product->retail_price }}

Price Per Piece: {{ $product->price_per_piece }}

@endforeach

Leave empty to use current date

{{-- Credit Customer Info --}} {{-- Cash Customer Info --}}
@endsection