فهرست منبع

added rm label on rm transactions

= 3 سال پیش
والد
کامیت
c78674f30b
2فایلهای تغییر یافته به همراه15 افزوده شده و 1 حذف شده
  1. 14 0
      app/Helpers/helpers.php
  2. 1 1
      resources/views/app/practice-management/financial-transactions.blade.php

+ 14 - 0
app/Helpers/helpers.php

@@ -272,6 +272,20 @@ if(!function_exists('friendly_date')) {
     }
 }
 
+if(!function_exists('friendly_date_month_year')) {
+    function friendly_date_month_year($value) {
+        if(!$value || empty($value)) return '';
+        try {
+            $result = strtotime($value);
+            $result = date("M YY", $result);
+            return $result;
+        }
+        catch (Exception $e) {
+            return $value;
+        }
+    }
+}
+
 if(!function_exists('friendlier_date')) {
     function friendlier_date($value) {
         if(!$value || empty($value)) return '';

+ 1 - 1
resources/views/app/practice-management/financial-transactions.blade.php

@@ -119,7 +119,7 @@
                                         </a>
                                     @elseif($transaction->bill && $transaction->bill->careMonth)
                                         <a href="/patients/view/{{ $transaction->client->uid }}/care-months/view/{{ $transaction->bill->careMonth->uid }}">
-                                            Remote Monitoring {{$transaction->bill->careMonth->start_date}}
+                                            Remote Monitoring {{friendly_date_month_year($transaction->bill->careMonth->start_date)}}
                                         </a>
                                     @else
                                         {{ $transaction->custom_memo ? $transaction->custom_memo : '-' }}