@extends('layouts.app', ['title' => 'Products']) @section('content') @php($canManage = auth()->user()->can('payments.manage'))

Products

What you sell: one-time products and services, or subscriptions. Prices are before GST.

@if ($canManage)@endif
@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@if ($products->isEmpty())
No products yet. Add what you sell to use it on checkout pages and invoices.
@else
@foreach ($products as $p) @endforeach
ProductTypePriceGSTWith GSTSold
{{ $p->name }}
@if ($p->hsn_code)
HSN/SAC {{ $p->hsn_code }}
@endif
{{ $p->isRecurring() ? 'Subscription, '.$p->interval.'ly' : 'One-time' }}{{ $p->is_active ? '' : ' ยท hidden' }} {{ money_full($p->price, $p->currency) }} {{ rtrim(rtrim((string) $p->gst_rate, '0'), '.') }}% {{ money_full($p->totalPrice(), $p->currency) }} {{ $p->orders_count }} @if ($canManage)
@csrf @method('DELETE')
@endif
@endif
@if ($canManage) @endif @endsection @push('scripts') @endpush