@extends('template.layout') @section('style') @endsection @section('content')
@if (session('error')) @endif @if (session('success')) @endif
Invoice Payment Summery
Back {{-- Create --}}
{{--
@csrf
--}}
@php $total_payment = 0; $total_payment_amount = 0; @endphp @if (isset($payments)) @foreach ($payments as $payment) @php $total_payment++; $total_payment_amount += $payment->amount; @endphp @endforeach @endif
# Branch Invoice Code Invoice Date Invoice Type Invoice Status Salesman Customer Name Item Payment Type Payment Date Payment Amount Action
{{ $loop->iteration }} {{ $payment->branch->name }} {{ $payment->invoice->code }} {{ $payment->invoice->date }} {{ $payment->invoice->type }} {{ $payment->invoice->status }} {{ $payment->invoice->salesman->name }} {{ $payment->invoice->customer_name }} {{ $payment->invoice->item->name }} {{ $payment->type }} {{ $payment->date }} {{ number_format($payment->amount, 2) }} View
{{$payments->links()}}
@endsection @section('script') @endsection