@extends('layouts.app') @push('css') @endpush @section('content')
{{ $title }}
{{ csrf_field() }}

@if(session('success')) {!! alert_success(session('success')) !!} @elseif(session('error')) {!! alert_error(session('error')) !!} @endif

@php $total = 0; @endphp @foreach($histories as $history) @php $total+=$history->amount; @endphp @endforeach
# Supplier Phone Number Amount Date By
{{ $loop->iteration }} {{ $history->supplier->name }} {{ $history->supplier->phonenumber }} {{ number_format($history->amount,2) }} {{ convert_date($history->payment_date) }} {{ $history->user->name }}
Total : {{ number_format($total,2) }}
@endsection @push('js') @endpush