@extends('layouts.app') @section('title', 'Create ' . $title) @section('content')
Create {{ $title }}
@can($type === 'beers' ? 'CSM Beer Sales create' : 'CSM Alcohol Sales create') @endcan
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
Product Selection
Brand SKU Cost Sell Price Qty

{{-- --}} @php $items = session('imported_items', old('items', [])); @endphp @foreach ($items as $index => $item) {{-- --}} @endforeach {{-- --}} {{-- --}}
Brand SKU Cost Sell Price QtySubtotal (Cost x Qty)Total (Sell Price x Qty) Action
{{ $item['brand'] ?? '' }} {{ $item['sku'] ?? '' }} {{ isset($item['cost']) ? number_format($item['cost'], 2) : '0.00' }} {{ isset($item['sell_price']) ? number_format($item['sell_price'], 2) : '0.00' }} {{ $item['qty'] ?? 0 }} 0.00 {{ number_format(($item['sell_price'] ?? 0) * ($item['qty'] ?? 0), 2) }}
Total 0.00 0 0.00 0.00
Total 0.00
@endsection @push('css') @endpush @push('js') @endpush