@extends('template.layout') @section('style') @endsection @section('content')
@if ($errors->any()) @endif {{-- execption alert --}} @if (session('error')) @endif {{-- success alert --}} @if (session('success')) @endif @if (session('warning')) @endif
{{-- invoice main data --}}
View Invoice
Back
{{-- --}}
{{-- invoice payment data --}}
Payment Data
@php $total_payment = 0; $total_amount = 0; @endphp {{-- --}} @foreach ($invoice->payment as $payment) @php $total_payment++; $total_amount += $payment->amount; @endphp @endforeach
# Code Date Type AmountAction
{{ $loop->iteration }} {{ $payment->code }} {{ $payment->date }} {{ $payment->type }} {{ number_format($payment->amount, 2) }}
{{-- invoice return --}}
Return Invoice
{{--
@csrf --}}
{{-- invoice cancel --}}
Cancel Invoice
@endsection @section('script') @endsection