@extends('backend.layout.app') @section('title', 'User Details') @push('css') @endpush @section('main_menu', 'HOME') @section('active_menu', 'User Details') @section('link', route('admin.adminDashboard')) @section('content')
User profile picture

{{ $user->name }}

{{ $user->phone }}

@if (payment_history::where('user_id', $user->id)->exists()) Update Payment Status Update Monthly Bill @if (\App\payment_history::where('user_id', $user->id)->get()->count() == 1) Update Due Date @endif @else There is no payment history for this user.
please Complete The order for this user
@endif

Full payment history

@foreach ($payment as $key => $user_data) @endforeach
Id Month Name Payment Amount Due Payment Date Status Action
{{ $key + 1 }} {{ date('F-Y', strtotime($user_data->month_name)) }} @if ($user_data->payment_this_date == null) --- @else {{ $user_data->updated_at }} @endif {{ $user_data->total_due }} {{ date('jS F Y - h:i:s A', strtotime($user_data->created_at)) }} @if ($user_data->payment_status == 0) Due @else Paid @endif @if (\App\payment_history::where('user_id', $user->id)->get()->count() !== 1) @php $last_history = \App\payment_history::where( 'user_id', $user->id, ) ->orderBy('id', 'desc') ->first()->id; @endphp @if ($last_history == $user_data->id) Delete @endif @endif
Id Month Name Payment Amount Due Invoice Date Status Action

Online Payment history

@foreach ($onloine_payment as $key => $data) @endforeach
Id payment Amount Payment For Month Date
{{ $key + 1 }} {{ $data->amount }} {{ $data->number_of_months }} Tk {{ date('jS F Y - h:i:s A', strtotime($data->created_at)) }}
Id payment Amount Payment For Month Date

Bill Payment history

@foreach ($payment_confermation as $key => $data) @php $admin_name = \App\User::where('id', $data->admin_id)->first(); @endphp @endforeach
Id Sub Admin Name payment Amount Payment For Month Date
{{ $key + 1 }} {{ $admin_name->name }} {{ $data->updated_amount }} Tk For {{ $data->payment_for_month }} months {{ date('jS F Y - h:i:s A', strtotime($data->created_at)) }}
Id Sub Admin Name payment Amount Payment For Month Date

Monthly Bill Update history

@foreach ($monthly_bill_update_history as $key => $data) @php $admin_name = \App\User::where('id', $data->admin_id)->first(); @endphp @endforeach
Id Admin Name updated Amount Date
{{ $key + 1 }} {{ $admin_name->name }} {{ $data->monthly_bill }} Tk {{ date('jS F Y - h:i:s A', strtotime($data->created_at)) }}
Id Admin Name updated Amount Date
@csrf
@if ($errors->has('par_add')) {{ $errors->first('par_add') }} @endif
+88 @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
{{-- update due date --}} @endsection @push('js') @endpush