@extends('layout.app') @section('title') Stock Reports @endsection @push('css') @endpush @section('content')

Stock Reports

@if(isset($type) && $type == 'preview')
@foreach($stores as $store) @endforeach @foreach($products as $product) @foreach($stores as $store) @php($stock = $store->lastReportedStock($product->id,$date)) @endforeach @endforeach
Product{{$store->name}}
{{$product->description}}{{$stock}}
@else
@if ($reports->count() > 0) @foreach ($reports as $key=>$report) @endforeach @else

No data yet!

@endif
# Reporter Store Number of reported products Note Reported At Actions
{{$key+1}} {{$report->reporter->name ?? ''}} {{$report->store->name ?? ''}} {{$report->details->count()}} {{$report->note ?? ''}} {{$report->created_at}} view details @if(Auth::user()->is_admin) Delete
@csrf @method('DELETE')
@endif
@endif @endsection @push('scripts') @endpush