Will Call Invoicing

@if(auth()->user() && auth()->user()->is_admin) Create Invoice @else
Admin access required
@endif
@if($activeTab === 'configuration')

Configurations

@forelse($configs as $config) @empty @endforelse
Config Name Desired Margin % Jobber % Actions
{{ $config->config_name }} {{ $config->desired_margin }}% {{ $config->jobber_percentage }}% @if($config->config_name !== 'Default') @endif
No configurations found. Click "Add Configuration" to create one.
@endif @if($activeTab === 'calculator')

Selling Price Calculator

$
@if($calculatedSalePrice > 0)

Calculated Prices

Buy Price:

${{ number_format($buyPrice, 2) }}

Sale Price:

${{ number_format($calculatedSalePrice, 2) }}

List Price:

${{ number_format($calculatedListPrice, 2) }}

@endif
@endif @if($activeTab === 'reporting')
@if(!empty($reportData)) @endif
@if(!empty($reportStats))

Total Orders

{{ $reportStats['totalOrders'] }}

Total Revenue

${{ number_format($reportStats['totalRevenue'], 0) }}

Total Cost

${{ number_format($reportStats['totalCost'], 0) }}

Gross Profit

${{ number_format($reportStats['totalProfit'], 0) }}

Avg Order

${{ number_format($reportStats['avgOrderValue'], 0) }}

Profit Margin

{{ number_format($reportStats['profitMargin'], 1) }}%

@endif @if(!empty($reportData))
@foreach($reportData as $order) @endforeach
Order ID Date Customer Items Revenue Cost Profit Margin Actions
{{ $order->external_order_id }} {{ \Carbon\Carbon::parse($order->date_placed)->format('m/d/Y') }} {{ $order->customer_email }} {{ $order->total_items }} ${{ number_format($order->total_sale, 2) }} ${{ number_format($order->total_cost, 2) }} ${{ number_format($order->gross_profit, 2) }} {{ $order->total_sale > 0 ? number_format(($order->gross_profit / $order->total_sale) * 100, 1) : '0.0' }}%
@else

No report data

Select a date range and click "Generate Report" to view data.

@endif
@endif @if($activeTab === 'export')

Generate KSI Export

Important Note

This will export all pending Will Call items that need to be ordered from KSI-W. Items will be marked as "Local Ordered" after export.

@endif
@if($showConfigModal)

{{ $editingConfigId ? 'Edit' : 'Add' }} Configuration

@endif