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

{{-- --}} @php $items = session('imported_items', old('items', $sale->items->map(function ($item) { return [ 'brand' => $item->brand, 'sku' => $item->sku, 'cost' => $item->cost, 'sell_price' => $item->sell_price, 'qty' => $item->qty, ]; })->toArray())); @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
@can($type === 'beers' ? 'CSM Beer Sales delete' : 'CSM Alcohol Sales delete') @endcan
@endsection @push('css') @endpush @push('js') @endpush @push('js') @endpush