@extends('layouts.master') @section('title', 'Sale Invoice') @push('style') @endpush @section('content')
@if(file_exists('uploads/company/'. optional($sale->company)->logo)) @endif

{{ optional($sale->company)->name ?? '' }}

{{ optional($sale->company)->head_office }}
Email: {{ optional($sale->company)->email }}
Phone: {{ optional($sale->company)->phone_number }}
Bill To
{{ optional($sale->customer)->name }}
{{ optional($sale->customer)->address }} {{ optional($sale->customer)->mobile }} {{ optional($sale->customer)->email }}
Invoice No: {{ $sale->invoice_no }}
Date : {{ $sale->date }}
@foreach($sale->details ?? [] as $details) @endforeach
Sl Product Unit Quantity Price Amount
{{ $loop->iteration }}

{{ optional($details->product)->name }}

{{ $details->description }}

{{ optional(optional($details->product)->unit)->name }} {{ $details->quantity }} {{ $details->price }} {{ $details->amount }}
Discount Amount : {{ $sale->discount_amount }}
Receivable Amount : {{ $sale->total_amount }}
Paid Amount : {{ $sale->paid_amount }}
Due Amount : {{ $sale->due_amount }}
Customer
{{ optional($sale->customer)->name }}

Signature and Date
Issued By
{{ optional($sale->company)->name }}

Signature and Date
@endsection