@extends('template.layout') @section('style') @endsection @section('content')
@if ($errors->any()) @endif {{-- success alert --}} @if (session('success')) @endif @if (session('error')) @endif @if (session('warning')) @endif
@csrf @method('PUT') {{-- invoice main data --}}
Edit Invoice
{{-- --}}
picture_name == null || $invoice->picture_name == '' ? 'disabled' : '' }}>
@csrf @method('DELETE')
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 Amount Action
{{ $loop->iteration }} {{ $payment->code }} {{ $payment->date }} {{ $payment->type }} {{ number_format($payment->amount, 2) }}
@csrf @method('DELETE')
Return Invoice
@csrf
@csrf @method('DELETE')
Cancel Invoice
@csrf
@csrf @method('DELETE')
@endsection @section('script') @endsection