@extends('layouts.app') @php $isEdit = isset($cheque); @endphp @section('title', ($isEdit ? 'تعديل شيك وارد' : 'استلام شيك') . ' - '.config('app.name')) @section('breadcrumb') الرئيسية › المحاسبة › الشيكات › {{ $isEdit ? 'تعديل شيك وارد' : 'استلام شيك' }} @endsection @section('content') @php $incomingPartyOpts = collect($customers ?? collect())->map(function ($customer) { $customerName = data_get($customer, 'name_ar') ?: data_get($customer, 'name'); $optionValue = trim((string) (data_get($customer, 'code').' - '.$customerName), ' -'); return ['value' => $optionValue, 'label' => $optionValue]; })->filter(fn ($o) => $o['value'] !== '')->values()->all(); $incomingCurrencyOpts = [['value' => 'SAR', 'label' => 'SAR']]; @endphp
@endsection