@extends('layouts.admin') @section('title', 'Suppliers') @section('content') @php $field = 'h-11 px-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-sm outline-none focus:ring-2 ring-brand-500'; @endphp {{-- Breadcrumb --}}
Suppliers/Suppliers management
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif
{{-- Search + Filter + Create --}}
@if (request()->hasAny(['q', 'city'])) Reset @endif
Total: {{ $totalCount }} + Create
{{-- Table --}}
@forelse ($suppliers as $s) @php $due = (float) $s->purchases_sum_due_amount; @endphp @empty @endforelse
Name Phone Email City Tax number Total purchase Purchase due Action
{{ $s->name }}
@if ($s->address)
{{ $s->address }}
@endif
{{ $s->phone ?: '—' }} {{ $s->email ?: '—' }} {{ $s->city ?: '—' }} {{ $s->trn ?: '—' }} {{ number_format((float) $s->purchases_sum_total, 2) }} {{ number_format($due, 2) }} Edit
@csrf @method('DELETE')
Kono supplier paoa jayni. Notun supplier add koro
@if ($suppliers->hasPages())
{{ $suppliers->links() }}
@endif
@endsection