@extends('layouts.app') @section('title', $page_title) @section('content')

{{ $sub_title }}

@if(permission('purchase-access')) {{__('file.Back')}} @endif
Logo

{{ config('settings.title') ? config('settings.title') : env('APP_NAME') }}

@if(config('settings.contact_no'))

{{__('file.Contact No')}}.: {{ config('settings.contact_no') }}, @if(config('settings.email')){{__('file.Email')}}: {{ config('settings.email') }}@endif

@endif

{{__('file.Date')}}: {{ date('d-M-Y') }}


{{__('file.INVOICE TO')}}
@if($purchase->party_type == 1)
{{ $purchase->party->company_name }}
{{ $purchase->party->name }}
{{ $purchase->party->mobile }}
@if($purchase->party->email)@endif @if($purchase->party->address)
{{ $purchase->party->address }}
@endif @else
{{ $purchase->party_name }}
@endif

#{{ $purchase->invoice_no }}

{{__('file.Transport Name')}}: {{ $purchase->transport_name }}
{{__('file.Date')}}: {{ date('d-M-Y',strtotime($purchase->purchase_date)) }}
@if (!$purchase->purchaseProductList->isEmpty()) @foreach ($purchase->purchaseProductList as $key => $item) @endforeach @endif
{{__('file.SL')}} {{__('file.Company')}} {{__('file.Product')}} {{__('file.Unit')}} {{__('file.Price')}} {{__('file.Quantity')}} {{__('file.Scale')}} {{__('file.Receive Quantity')}} {{__('file.Sub Total')}} {{__('file.Note')}}
{{ $key+1 }} {{ $item->warehouse->name }} {{ $item->product->product_name }} {{ $item->product->unit->unit_name.'('.$item->product->unit->unit_code.')' }} {{ number_format($item->price,2) }} {{ $item->qty }} {{ $item->scale }} {{ $item->rec_qty }} {{ number_format($item->sub_total,2) }} {{ $item->note }}
{{__('file.Discount')}} : {{number_format($purchase->discount)}}
{{__('file.TOTAL')}} : {{number_format($purchase->total_purchase_sub_total)}}
{{__('file.Previous Due')}} : {{number_format($purchase->previous_due)}}
{{__('file.Net Total')}} : {{number_format($purchase->net_total)}}
{{__('file.Paid Amount')}} : {{number_format($purchase->paid_amount)}}
{{__('file.Due')}} : {{number_format($purchase->due_amount)}}

{{__('file.Received By')}}

{{ $purchase->created_by }}
{{ date('d-M-Y h:i:s A',strtotime($purchase->created_at)) }}

{{__('file.Generated By')}}

@endsection @push('scripts') @endpush