@extends('layouts.master') @section('title') إذن صرف مرتجع — طلب {{ $issue->id }} @endsection @section('page-header')
@endsection @section('content') @include('financial_years.partials.alerts') @php $open = in_array($issue->status, ['pending', 'partial'], true); $canPartial = auth()->user()->can('warehouse_issues_partial') || auth()->user()->can('warehouse_receipts_manage'); $canPrint = auth()->user()->can('warehouse_issues_print') || auth()->user()->can('warehouse_receipts_manage'); $fmt = fn ($v) => rtrim(rtrim(number_format((float) $v, 4, '.', ''), '0'), '.'); @endphp| رقم الإذن | النوع | التاريخ | بواسطة | الكمية | القيمة | رقم القيد | |
|---|---|---|---|---|---|---|---|
| {{ $v->id }} | {{ $v->type === 'full' ? 'كلي' : 'جزئي' }} | {{ $v->created_at->format('Y-m-d H:i') }} | {{ $v->issuer->name ?? '-' }} | {{ $fmt($v->total_qty) }} | {{ number_format($v->total_value, 2) }} | {{ $v->dely_record ?: '-' }} | @if ($canPrint)طباعة@endif |