{{-- @if($serverstatus) --}} @if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('store_purchase-read'))
{{--

Purchase With GST / Without GST


--}}
{{--@if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('store_purchase-create'))--}} {{--@endif--}}
@if(sizeof($datatables)>0) @foreach($datatables as $key => $tabledata) @endforeach @else @endif
Actions Status GST Type Invoice Date Invoice No. Supplier Name Gross Amount Discount Amount Tax Amount Net Amount Payment Status
@if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('store_purchase-read')) @endif @if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('store_purchase-update')) @endif @if(\Illuminate\Support\Facades\Auth::user()->isAbleTo('store_purchase-delete')) @endif @if($tabledata['status']) Active @else Inactive @endif @if($tabledata['gst_type'] =='Yes') GST @else Non-GST @endif {{\Carbon\Carbon::parse($tabledata['purchase_invioce_date'])->format('d M, Y')}} {{$tabledata['purchase_invoice_no']}} {{$tabledata['supplier_name']}} ₹{{$tabledata['gross_amount']}} @if($tabledata['discount_amount']) ₹{{$tabledata['discount_amount']}} @endif ₹{{$tabledata['tax_amount']}} ₹{{$tabledata['net_amount']}} @if($tabledata['payment_status'] == 0) Due @elseif($tabledata['payment_status'] == 1) Partial Paid @elseif($tabledata['payment_status'] == 2) Paid @endif
@if(sizeof($showdetailsarray)>0) @foreach($showdetailsarray as $detail) {{-- --}} @endforeach @endif
@if(sizeof($detail['ItemImage_info']) >0) @else @endif
{{$detail['item_info']['item_name']}}
{{$detail['brand_info']['brand_name']}} / {{$detail['dimension_info']['dimension_name']}}
PTR
₹{{$detail['unit_price']}}
Qty
{{$detail['quantity']}}
Discount Rate
{{$detail['discount_rate']}}
@if($detail['igst_rate'])
IGST Rate
{{$detail['igst_rate']}}%
@else
GST Rate
{{number_format((float)($detail['cgst_rate'] + $detail['sgst_rate']), 2, '.', '')}}%
@endif
Net Amount
₹{{$detail['net_amount']}}
PTR
₹{{$detail['ptr_amount']}}
MRP
₹{{$detail['purchase_mrp']}}
Min. Qty
{{$detail['minimum_quantity']}}
Bar Code
{{$detail['bar_code']}}
On hand
@if($detail['balance_quantity']>0)
In Stock
@else
Low Stock
@endif

No Data Available

@if(sizeof($datatables)>0) {{$datatables->links('livewire.pagination-livewire')}} @endif
@else

Sorry !!! Unauthorized Access.

@endif {{-- @else

Sorry !!! Service Is Not Available.

@endif --}} @section('externaljs') @endsection