@extends('backend.layouts.master') @section('section-title', 'Return') @section('page-title', 'Return Purchase') @section('action-button') Purchase List @endsection @push('css') @endpush @section('content')
@csrf @method('PUT')
@php $purchaseItem = App\Models\PurchaseItem::where('purchase_id', $purchase->id)->where('stock_qty','>','0') ->get(); @endphp @forelse ($purchaseItem as $item) @empty @endforelse {{-- Discount --}}
Product Product Variation Quantity Rate Total Action
{{ $item->product?->name }} - {{ $item->product?->barcode }} {{ $item->product_variation?->size?->size }}-{{ $item->product_variation?->color?->color }}
@if ($item->product->unit->related_unit == null) {{-- ONLY MAIN UNIT --}} @else {{-- HAS SUB UNIT --}} @endif
No Purchase Found
Total
Discount
Payment
@endsection @push('js') @endpush