@extends('dashboard.master') @section('title', 'Fund Collect Details') @section('content')
Fund Collect Details
@if(!empty($data->receipt_no)) @endif @if(!empty($data->invoice_no)) @endif @if(!empty($data->date)) @endif @if(!empty($data->funds)) @endif @if(!empty($data->students)) @endif @if(!empty($data->donar_id) || (!empty($data->name) && !empty($data->phone))) @php $name = ''; $phone = ''; if (empty($data->donar_id)) { $name = $data->name ?? ''; $phone = $data->phone ?? ''; } else { $name = $data->donar->name ?? ''; $phone = $data->donar->phone ?? ''; } @endphp @endif @if(!empty($phone)) @endif @if(!empty($data->amount)) @endif @if(!empty(Auth::user()->name)) @endif @if(!empty($data->purpose)) @endif @if(!empty($data->address)) @endif @if(!empty($data->note)) @endif
Receipt No {{ str_pad($data->receipt_no ?? '-', 2, '0', STR_PAD_LEFT) }}
Invoice No {{ str_pad($data->invoice_no ?? '-', 2, '0', STR_PAD_LEFT) }}
Date {{ \Carbon\Carbon::parse($data->date)->format('d-M-Y') }}
Fund Name {{ $data->funds->name ?? '' }}
Student {{ $data->students->name ?? '' }}
Donar Name{{ $name ?? '' }}
Donar Phone {{ $phone ?? '' }}
Amount {{ $data->amount ?? '' }}
Taked By {{ Auth::user()->name ?? '' }}
Purpose {{ $data->purpose ?? '-' }}
Address {{ $data->address ?? '-' }}
Note {{ $data->note ?? '-' }}
@endsection