@extends('layout.app') @section('content')
{{-- BACK BUTTON --}}
@if ($mode === 'purchase') Back to Reports @else Back to Reports @endif
{{-- TITLE --}}
{{ $mode === 'purchase' ? 'Purchase Details' : 'Sales Details' }}

{{-- INFO BOX --}}
Date: {{ $bill->date }}
Line: {{ $bill->line_name }}
@if($mode === 'purchase') Supplier: {{ $bill->supplier_name }}
Phone: {{ $bill->supplier_contact }}
Address: {{ $bill->supplier_address }}
@else Customer: {{ $bill->customer_name }}
Phone: {{ $bill->customer_contact }}
Address: {{ $bill->customer_address }}
@endif

Item Details
@if($mode === 'purchase') @endif @foreach($items as $i) @if($mode === 'purchase') @endif @endforeach
Product Qty Rate AmountSup Amount Com AmountDate
{{ $i->product_name }} {{ $i->quantity }} ₹ {{ $i->rate }} ₹ {{ $i->amount }}₹ {{ $i->sup_amount }} ₹ {{ $i->com_amount }}{{ $bill->date }}
Total: ₹ {{ $bill->total_amount }}
@endsection {{-- BACKSPACE GO BACK --}}