@extends('layouts.master') @section('title', 'Debtors | Proxima - Medical Management app') @section('title-topbar', 'Worker') @section('css') @endsection @section('fixedcontent')
@if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
Dashboard | Doctor result @role('Super-admin|Hr') @endrole
Doctor result

{{ $doctor->getRoleNames()[0] }}

{{ $doctor->name }}

ID {{ $doctor->id }}

Branch

@if ($doctor->branch) {{ $doctor->branch->name }} @else All @endif

Phone

{{ $doctor->phone_number }}

Rate

{{ round($rate, 2) }} / 5


    @foreach ($doctor_record as $item) @if ($item->type == 0) @php $type_text = 'Fine'; $text_color = 'cancel-color'; @endphp @elseif ($item->type == 1) @php $type_text = 'Bonus'; $text_color = 'done-color'; @endphp @elseif ($item->type == 2) @php $type_text = 'Promotion'; $text_color = 'done-color'; @endphp @elseif ($item->type == 3) @php $type_text = 'Problem'; $text_color = 'cancel-color'; @endphp @elseif ($item->type == 4) @php $type_text = 'Other'; $text_color = 'main-color'; @endphp @endif
  • {{ date('d M Y', strtotime($item->start)) }}

    {{ $type_text }}

    Note

    {{ $item->note }}

    Price

    {{ $item->amount }}
  • @endforeach
  • {{ date('d M Y', strtotime($doctor->started_work)) }}

    Started Wokring
@foreach ($invoice as $item) @if ($item->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = 'Not Paid'; @endphp @elseif ($item->status == 1) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = 'Pending'; @endphp @elseif ($item->status == 2) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = 'Paid'; @endphp @endif @endforeach
Name Branch Amount Status
{{ $item->code }} {{ $item->branch->name }} @if (!empty($item->paid)) {{ $item->paid }} EGP @endif {{ $msg_invoice }}
@endsection @section('js') @endsection