@extends('layouts.layout-admin') @section('title', 'POS') @section('header_title', 'Point of Sales') @section('header_subtitle', 'Quick checkout without shipping cost') @section('content')
@forelse($products as $product)
@if ($product->getPrimaryImage()) {{ $product->name }} @endif
{{ $product->name }}

Rp {{ number_format($product->price, 0, ',', '.') }}

Stock: {{ $product->stock }}
@csrf
@empty

No products found

@endforelse
{{ $products->links() }}
Cart
@if (count($cart) > 0)
@csrf
@endif
@if (count($cart) > 0)
@foreach ($cart as $item)
{{ $item['name'] }}
Rp {{ number_format($item['price'], 0, ',', '.') }}
@csrf
@csrf {{ $item['quantity'] }}
Rp {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }}
@endforeach
Total
Rp {{ number_format($total, 0, ',', '.') }}
@csrf
@else

Cart is empty

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush