@extends('admin_dashboard') @section('admin')

Product List (Land)

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
Add Product
@php $editProduct = request()->has('edit') ? ($products->firstWhere('id', request('edit')) ?? null) : null; @endphp
@csrf @if($editProduct) @method('PUT') @endif
All Transactions
@foreach($products as $p) @endforeach
# Wings No Type Flat/Plot No. Quantity Price Status Sale Action
{{ $p->id }} {{ $p->wings_no }} {{ $p->type }} {{ $p->flat_plot_no }} {{ $p->quantity }} {{ number_format($p->price ?? 0, 2) }} {{ $p->booking }} {{ $p->sale }} Edit
@csrf @method('DELETE')
@endsection