@extends('layouts.'.Auth::user()->role.'_layout') @section('title') {{ __('View Prescription') }} @endsection @section('content')

@can('print prescription') @endcan

{!! clean(get_option('title')) !!}
{!! clean(get_option('Address')) !!}
{!! clean(get_option('phone')) !!}

{!! clean(get_option('header_left')) !!}
@if(!empty(get_option('logo')))

@endif

{{ __('Date') }} : {{ $prescription->created_at->toFormattedDateString() }}
{{ __('Reference') }} : {{ $prescription->reference }}
{{ __('Patient Name') }} : {{ $prescription->User->name }}
@isset($prescription->User->gender) {{ __('Gender') }} : {{ $prescription->User->gender }} @endisset

{{ __('Prescription') }}

@if(count($prescription_drugs) > 0)
@foreach ($prescription_drugs as $drug)
  • {{ $drug->Drug->trade_name }} {{ $drug->strength }}
      {{ $drug->dose }} - {{ $drug->duration }}
      {{ $drug->drug_advice }}
  • @if($loop->last)

    @endif @endforeach
    @endif @if(count($prescription_tests) > 0)
    {{ __('Test to do') }}

    @foreach ($prescription_tests as $test)
  • {{ $test->Test->test_name }} @empty(!$test->description) - {{ $test->description }} @endempty
  • @if($loop->last)

    @endif @endforeach
    @endif

    {{ __('Signature, Stamp') }}
    @if(!empty(get_option('footer_left')) && !empty(get_option('footer_right')))

    {!! clean(get_option('footer_left')) !!}

    {!! clean(get_option('footer_right')) !!}

    @elseif(empty(get_option('footer_left')))

    {!! clean(get_option('footer_right')) !!}

    @elseif(empty(get_option('footer_right')))

    {!! clean(get_option('footer_left')) !!}

    @else @endif
    @endsection @section('header') @endsection @section('footer') @endsection