@extends('backend.partials.master') @section('title') Customer Purchase Price @endsection @section('maincontent') @php // ЁЯСЙ рдЬрд░ route = view рдЕрд╕реЗрд▓ рддрд░ READ-ONLY mode $isView = request()->routeIs('CustomerSellingPrice.view'); @endphp

@if($isView) View Customer Sale Price @else Customer Sale Price @endif

{{-- тЭМ VIEW MODE рдордзреНрдпреЗ form submit рдирдХреЛ --}}
@csrf {{-- ================= LOT NO ================= --}}
{{-- ================= TABLE ================= --}}
@foreach($customers as $c) @endforeach @forelse($products as $productId => $items) @php $first = $items->first(); // common data @endphp @foreach($customers as $c) @php $price = $items->firstWhere('customer_id', $c->id); @endphp @endforeach @empty @endforelse
Sr Lot No Product Rate Expense Commission %{{ $c->fname }}
{{ $loop->iteration }} {{ $first->lot_no }} {{ $first->product_name }} {{ number_format($first->rate, 2) }} {{ number_format($first->expense, 2) }} {{ number_format($first->commission_percent, 2) }}%{{ $price ? number_format($price->sale_price, 2) : 'тАФ' }}
No Data Found
{{-- ================= BUTTONS ================= --}}
@endsection @push('scripts') @endpush