@extends('layouts.app') @section('header')
@endsection @section('content')

@foreach($transaction as $key => $value) @endforeach
Transaction ID Date Purchase ID Supplier Grand total Paid Balance Due
{{ $value->id }} {{ \Carbon\Carbon::parse($value->created_at)->format('jS M Y') }} {{ $value->purchase_id }} {{ isset($value->supplier->supplier_name) ? $value->supplier->supplier_name : '' }} {{ $value->subtotal }} {{ $value->payment }} {{ $value->balance }} {{ $value->due }}
Report Date : {{ $data['from']->format('jS M Y') }} - {{ $data['to']->format('jS M Y') }}        
Total Purchase: {{ $total['purchase'] }}        
Paid Purchase: {{ $total['payment'] }}        
Balance Purchase: {{ $total['balance'] }}        
Due Purchase: {{ $total['due'] }}        
@endsection @section('scripts') @include('layouts.datatables_only_files') @endsection