@extends('master.app') @section('title','Return Bill Items') @section('body')
Return Bill: {{ $bill->invoice_number }}
Customer: {{ $bill->customer->name ?? '' }} | Currency: {{ $bill->currency->title_en ?? $bill->currency->title_ps ?? '' }}
Back
@include('general.valert') {{-- Add item --}}
@csrf

{{-- Items table --}}
@php($sum = 0) @foreach($bill_items as $i => $it) @php($sum += (float)$it->total) @endforeach
# Cat Sub Unit Weight Type To Stock Price Qty Total Action
{{ $i+1 }} {{ $it->category->title_ps ?? $it->cat_id }} {{ $it->sub_category->title_ps ?? $it->sub_cat_id }} {{ $it->unit->title_ps ?? $it->unit_id }} {{ $it->weight->title_ps ?? $it->weight_id }} {{ $it->reason_type }} @if((int)$it->to_stock===1) YES @else NO @endif {{ number_format($it->price,2) }} {{ number_format($it->qty,2) }} {{ number_format($it->total,2) }} Del
Grand Total {{ number_format($sum,2) }}
{{-- Finalize --}}
@csrf
@endsection