@extends('backend.master') @section('title', 'Sell history') @section('content')

Sell History ({{ $sells->total() }})

{{-- Add --}} {{-- Branch --}} {{-- {{ $branch->branch_name }} Branch --}}
{{-- --}} @foreach ($sells as $sell) @endforeach
Category IDSell ID Customer ID Customer Name Payment Method Due Paid Subtotal Actions
{{ $sell->id }} {{ $sell->customer_id }} {{ $sell->customer->name }} {{ $sell->sellPayment->payment_method }} @if ($sell->sellPayment->due > 0.0) {{ $sell->sellPayment->due }}৳ @else {{ $sell->sellPayment->due }} @endif {{ $sell->sellPayment->paid }}৳ {{ $sell->subtotal }}৳
@csrf @method('PUT')
{{ $sells->links('pagination::bootstrap-5') }}
@endsection